Blame SOURCES/0028-Ticket-50857-Memory-leak-in-ACI-using-IP-subject.patch

8394b4
From c804325a9e06b4fabbd456b618db1417a12c135d Mon Sep 17 00:00:00 2001
8394b4
From: Thierry Bordaz <tbordaz@redhat.com>
8394b4
Date: Mon, 27 Jan 2020 13:49:37 +0100
8394b4
Subject: [PATCH] Ticket 50857 - Memory leak in ACI using IP subject
8394b4
8394b4
Bug Description:
8394b4
	When a ACI is evaluated (LASIpEval) a context (cookie) is allocated.
8394b4
	At the end of the connection, the context is freed
8394b4
	via a callback (LASIpFlush).
8394b4
	The context contains two LASIpTree_t tree (ipv4 and ipv6)
8394b4
	In free callback, only ipv4 tree is freed
8394b4
8394b4
Fix Description:
8394b4
	Free ipv6 tree in LASIpTree
8394b4
8394b4
https://pagure.io/389-ds-base/issue/50857
8394b4
8394b4
Reviewed by: Mark Reynolds
8394b4
8394b4
Platforms tested: F31
8394b4
8394b4
Flag Day: no
8394b4
8394b4
Doc impact: no
8394b4
---
8394b4
 lib/libaccess/lasip.cpp | 1 +
8394b4
 1 file changed, 1 insertion(+)
8394b4
8394b4
diff --git a/lib/libaccess/lasip.cpp b/lib/libaccess/lasip.cpp
8394b4
index 30c546df7..cdb88eec5 100644
8394b4
--- a/lib/libaccess/lasip.cpp
8394b4
+++ b/lib/libaccess/lasip.cpp
8394b4
@@ -436,6 +436,7 @@ LASIpFlush(void **las_cookie)
8394b4
         return;
8394b4
 
8394b4
     LASIpTreeDealloc(((LASIpContext_t *)*las_cookie)->treetop);
8394b4
+    LASIpTreeDealloc(((LASIpContext_t *)*las_cookie)->treetop_ipv6);
8394b4
     PERM_FREE(*las_cookie);
8394b4
     *las_cookie = NULL;
8394b4
     return;
8394b4
-- 
8394b4
2.21.1
8394b4