You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
793 B

autofs-5.1.0 - fix memory leak in conf_amd_get_log_options()
From: Ian Kent <raven@themaw.net>
Fix obvious memory leak in conf_amd_get_log_options().
---
CHANGELOG | 1 +
lib/defaults.c | 1 +
2 files changed, 2 insertions(+)
--- autofs-5.0.7.orig/CHANGELOG
+++ autofs-5.0.7/CHANGELOG
@@ -133,6 +133,7 @@
- fix leak in cache_push_mapent().
- fix config entry read buffer not checked.
- fix FILE pointer check in defaults_read_config().
+- fix memory leak in conf_amd_get_log_options().
25/07/2012 autofs-5.0.7
=======================
--- autofs-5.0.7.orig/lib/defaults.c
+++ autofs-5.0.7/lib/defaults.c
@@ -1794,6 +1794,7 @@ unsigned int conf_amd_get_log_options(vo
if (log_level < LOG_CRIT)
log_level = LOG_CRIT;
}
+ free(tmp);
}
if (log_level == -1)