|
|
cef8f8 |
autofs-5.1.3 - fix memory leak in umount_amd_ext_mount()
|
|
|
cef8f8 |
|
|
|
cef8f8 |
From: Ian Kent <raven@themaw.net>
|
|
|
cef8f8 |
|
|
|
cef8f8 |
Free allocated resources before returning success if mount is
|
|
|
cef8f8 |
found to be in use by another user.
|
|
|
cef8f8 |
|
|
|
cef8f8 |
Signed-off-by: Ian Kent <raven@themaw.net>
|
|
|
cef8f8 |
---
|
|
|
cef8f8 |
CHANGELOG | 1 +
|
|
|
cef8f8 |
lib/mounts.c | 4 ++--
|
|
|
cef8f8 |
2 files changed, 3 insertions(+), 2 deletions(-)
|
|
|
cef8f8 |
|
|
|
cef8f8 |
--- autofs-5.0.7.orig/CHANGELOG
|
|
|
cef8f8 |
+++ autofs-5.0.7/CHANGELOG
|
|
|
cef8f8 |
@@ -282,6 +282,7 @@
|
|
|
cef8f8 |
- add function ext_mount_inuse().
|
|
|
cef8f8 |
- add function construct_argv().
|
|
|
cef8f8 |
- add amd mount type program mount support.
|
|
|
cef8f8 |
+- fix memory leak in umount_amd_ext_mount().
|
|
|
cef8f8 |
|
|
|
cef8f8 |
25/07/2012 autofs-5.0.7
|
|
|
cef8f8 |
=======================
|
|
|
cef8f8 |
--- autofs-5.0.7.orig/lib/mounts.c
|
|
|
cef8f8 |
+++ autofs-5.0.7/lib/mounts.c
|
|
|
cef8f8 |
@@ -2076,7 +2076,7 @@ int umount_amd_ext_mount(struct autofs_p
|
|
|
cef8f8 |
|
|
|
cef8f8 |
if (!ext_mount_remove(&entry->ext_mount, entry->fs)) {
|
|
|
cef8f8 |
rv =0;
|
|
|
cef8f8 |
- goto out;
|
|
|
cef8f8 |
+ goto out_free;
|
|
|
cef8f8 |
}
|
|
|
cef8f8 |
|
|
|
cef8f8 |
rv = spawnv(ap->logopt, prog, (const char * const *) argv);
|
|
|
cef8f8 |
@@ -2089,7 +2089,7 @@ int umount_amd_ext_mount(struct autofs_p
|
|
|
cef8f8 |
"umounted program mount at %s", entry->fs);
|
|
|
cef8f8 |
rmdir_path(ap, entry->fs, ap->dev);
|
|
|
cef8f8 |
}
|
|
|
cef8f8 |
-
|
|
|
cef8f8 |
+out_free:
|
|
|
cef8f8 |
free_argv(argc, (const char **) argv);
|
|
|
cef8f8 |
free(str);
|
|
|
cef8f8 |
|