[PATCH 15/32] autofs-5.1.5 - fix amd entry memory leak

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fix an incorrect free of an amd_entry structure.

Signed-off-by: Ian Kent <raven@xxxxxxxxxx>
---
 CHANGELOG    |    1 +
 lib/master.c |    2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG b/CHANGELOG
index 1a48209e..ecfbd2c9 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -21,6 +21,7 @@ xx/xx/2019 autofs-5.1.6
 - remove unused function has_fstab_option().
 - remove unused function reverse_mnt_list().
 - remove a couple of old debug messages.
+- fix amd entry memory leak.
 
 30/10/2018 autofs-5.1.5
 - fix flag file permission.
diff --git a/lib/master.c b/lib/master.c
index e0bd34ab..24abb296 100644
--- a/lib/master.c
+++ b/lib/master.c
@@ -155,7 +155,7 @@ void master_free_autofs_point(struct autofs_point *ap)
 			ext_mount_remove(&entry->ext_mount, entry->fs);
 		if (!list_empty(&entry->entries))
 			list_del(&entry->entries);
-		free(entry);
+		free_amd_entry(entry);
 	}
 	mounts_mutex_unlock(ap);
 




[Index of Archives]     [Linux Filesystem Development]     [Linux Ext4]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux