Blame SOURCES/0001-IceListenForWellKnownConnections-Fix-memleak.patch

fcff97
From 6fed0334c99d3c088752b462d106a84266fb1114 Mon Sep 17 00:00:00 2001
fcff97
From: Olivier Fourdan <ofourdan@redhat.com>
fcff97
Date: Wed, 10 Apr 2019 11:01:31 +0200
fcff97
Subject: [PATCH libICE 1/3] IceListenForWellKnownConnections: Fix memleak
fcff97
fcff97
The function `_IceTransMakeAllCOTSServerListeners` allocates memory for
fcff97
`transConns` which is leaked in case of error.
fcff97
fcff97
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
fcff97
---
fcff97
 src/listenwk.c | 1 +
fcff97
 1 file changed, 1 insertion(+)
fcff97
fcff97
diff --git a/src/listenwk.c b/src/listenwk.c
fcff97
index 7517ea8..9ff26da 100644
fcff97
--- a/src/listenwk.c
fcff97
+++ b/src/listenwk.c
fcff97
@@ -61,6 +61,7 @@ IceListenForWellKnownConnections (
fcff97
         strncpy (errorStringRet,
fcff97
 	    "Cannot establish any listening sockets", errorLength);
fcff97
 
fcff97
+	free (transConns);
fcff97
 	return (0);
fcff97
     }
fcff97
 
fcff97
-- 
fcff97
2.21.0
fcff97