From: Ralph Boehme Date: Wed, 12 Dec 2018 12:09:03 +0000 (+0100) Subject: debug: add resource cleanup for per debug-class logfiles X-Git-Tag: tdb-1.3.17~206 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abfb3c6bbf5d3d27ca61cd973ffb15c3d8e2be4f;p=thirdparty%2Fsamba.git debug: add resource cleanup for per debug-class logfiles Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/lib/util/debug.c b/lib/util/debug.c index d01bde7a479..780ce9a26c2 100644 --- a/lib/util/debug.c +++ b/lib/util/debug.c @@ -870,6 +870,7 @@ bool debug_parse_levels(const char *params_str) /* Array is debug_num_classes long */ for (i = DBGC_ALL+1; i < debug_num_classes; i++) { dbgc_config[i].loglevel = dbgc_config[DBGC_ALL].loglevel; + TALLOC_FREE(dbgc_config[i].logfile); } while (tok != NULL) {