andykimpe / rpms / 389-ds-base

Forked from rpms/389-ds-base 5 months ago
Clone

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

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