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

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