diff options
author | Olivier Fourdan <ofourdan@redhat.com> | 2019-04-10 11:01:31 +0200 |
---|---|---|
committer | Olivier Fourdan <ofourdan@redhat.com> | 2019-04-10 11:01:31 +0200 |
commit | 1493beba2aa03bdadeed8b4fa5d424df6e113071 (patch) | |
tree | 582c19e6048a31e16e46824ebfa327599162bc24 | |
parent | a67a477eefdc93c32fa82da6ff0b4e69dd4c2ccb (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.c | 1 |
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); } |