Blame SOURCES/autofs-5.1.5-fix-amd-entry-memory-leak.patch

c8d72b
autofs-5.1.5 - fix amd entry memory leak
c8d72b
c8d72b
From: Ian Kent <raven@themaw.net>
c8d72b
c8d72b
Fix an incorrect free of an amd_entry structure.
c8d72b
c8d72b
Signed-off-by: Ian Kent <raven@themaw.net>
c8d72b
---
c8d72b
 CHANGELOG    |    1 +
c8d72b
 lib/master.c |    2 +-
c8d72b
 2 files changed, 2 insertions(+), 1 deletion(-)
c8d72b
c8d72b
--- autofs-5.0.7.orig/CHANGELOG
c8d72b
+++ autofs-5.0.7/CHANGELOG
c8d72b
@@ -332,6 +332,7 @@
c8d72b
 - remove unused function has_fstab_option().
c8d72b
 - remove unused function reverse_mnt_list().
c8d72b
 - remove a couple of old debug messages.
c8d72b
+- fix amd entry memory leak.
c8d72b
 
c8d72b
 25/07/2012 autofs-5.0.7
c8d72b
 =======================
c8d72b
--- autofs-5.0.7.orig/lib/master.c
c8d72b
+++ autofs-5.0.7/lib/master.c
c8d72b
@@ -154,7 +154,7 @@ void master_free_autofs_point(struct aut
c8d72b
 			ext_mount_remove(&entry->ext_mount, entry->fs);
c8d72b
 		if (!list_empty(&entry->entries))
c8d72b
 			list_del(&entry->entries);
c8d72b
-		free(entry);
c8d72b
+		free_amd_entry(entry);
c8d72b
 	}
c8d72b
 	mounts_mutex_unlock(ap);
c8d72b