From 473d61634aff177b23520bf6c1fd85de6cee3718 Mon Sep 17 00:00:00 2001 From: Thierry Bordaz Date: Jan 27 2020 15:34:29 +0000 Subject: Ticket 50857 - Memory leak in ACI using IP subject Bug Description: When a ACI is evaluated (LASIpEval) a context (cookie) is allocated. At the end of the connection, the context is freed via a callback (LASIpFlush). The context contains two LASIpTree_t tree (ipv4 and ipv6) In free callback, only ipv4 tree is freed Fix Description: Free ipv6 tree in LASIpTree https://pagure.io/389-ds-base/issue/50857 Reviewed by: Mark Reynolds Platforms tested: F31 Flag Day: no Doc impact: no --- diff --git a/lib/libaccess/lasip.cpp b/lib/libaccess/lasip.cpp index 30c546d..cdb88ee 100644 --- a/lib/libaccess/lasip.cpp +++ b/lib/libaccess/lasip.cpp @@ -436,6 +436,7 @@ LASIpFlush(void **las_cookie) return; LASIpTreeDealloc(((LASIpContext_t *)*las_cookie)->treetop); + LASIpTreeDealloc(((LASIpContext_t *)*las_cookie)->treetop_ipv6); PERM_FREE(*las_cookie); *las_cookie = NULL; return;