Blame SOURCES/autofs-5.1.0-fix-memory-leak-in-conf_amd_get_log_options.patch

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