[Aide] Memleak fix for ACLs, SELinux, XAttr patches.

James Antill james-aide-38mkm at and.org
Fri Oct 27 20:13:10 EEST 2006


 This patch applies on top of the ACL, SELinux and xattrs patch that
Steve Grubb posted.

diff -rup aide-0.12-orig/src/do_md.c aide-0.12/src/do_md.c
--- aide-0.12-orig/src/do_md.c	2006-10-17 15:14:32.000000000 -0400
+++ aide-0.12/src/do_md.c	2006-10-17 15:16:28.000000000 -0400
@@ -381,6 +381,9 @@ void acl2line(db_line* line) {
         ret->acl_d = strdup(tmp);
       acl_free(tmp);
     }
+
+    acl_free(acl_a);
+    acl_free(acl_d);
   }
   line->acl = ret;
 #endif  

-- 
James Antill - <james.antill at redhat.com>


More information about the Aide mailing list