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

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