summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Fourdan <ofourdan@redhat.com>2019-04-10 11:01:31 +0200
committerOlivier Fourdan <ofourdan@redhat.com>2019-04-10 11:01:31 +0200
commit1493beba2aa03bdadeed8b4fa5d424df6e113071 (patch)
tree582c19e6048a31e16e46824ebfa327599162bc24
parenta67a477eefdc93c32fa82da6ff0b4e69dd4c2ccb (diff)
IceListenForWellKnownConnections: Fix memleak
The function `_IceTransMakeAllCOTSServerListeners` allocates memory for `transConns` which is leaked in case of error. Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
-rw-r--r--src/listenwk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/listenwk.c b/src/listenwk.c
index 37735b7..8452e04 100644
--- a/src/listenwk.c
+++ b/src/listenwk.c
@@ -64,6 +64,7 @@ IceListenForWellKnownConnections (
errorStringRet[errorLength - 1] = '\0';
}
+ free (transConns);
return (0);
}