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

8fa62f
autofs-5.1.5 - fix amd entry memory leak
8fa62f
8fa62f
From: Ian Kent <raven@themaw.net>
8fa62f
8fa62f
Fix an incorrect free of an amd_entry structure.
8fa62f
8fa62f
Signed-off-by: Ian Kent <raven@themaw.net>
8fa62f
---
8fa62f
 CHANGELOG    |    1 +
8fa62f
 lib/master.c |    2 +-
8fa62f
 2 files changed, 2 insertions(+), 1 deletion(-)
8fa62f
8fa62f
--- autofs-5.1.4.orig/CHANGELOG
8fa62f
+++ autofs-5.1.4/CHANGELOG
8fa62f
@@ -58,6 +58,7 @@ xx/xx/2018 autofs-5.1.5
8fa62f
 - remove unused function has_fstab_option().
8fa62f
 - remove unused function reverse_mnt_list().
8fa62f
 - remove a couple of old debug messages.
8fa62f
+- fix amd entry memory leak.
8fa62f
 
8fa62f
 19/12/2017 autofs-5.1.4
8fa62f
 - fix spec file url.
8fa62f
--- autofs-5.1.4.orig/lib/master.c
8fa62f
+++ autofs-5.1.4/lib/master.c
8fa62f
@@ -155,7 +155,7 @@ void master_free_autofs_point(struct aut
8fa62f
 			ext_mount_remove(&entry->ext_mount, entry->fs);
8fa62f
 		if (!list_empty(&entry->entries))
8fa62f
 			list_del(&entry->entries);
8fa62f
-		free(entry);
8fa62f
+		free_amd_entry(entry);
8fa62f
 	}
8fa62f
 	mounts_mutex_unlock(ap);
8fa62f