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

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