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

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