From d90b709ebb22fb40cbd46bdddd28d9ec1be7b0ce Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 18 Jan 2013 13:39:13 +1100 Subject: printing: Free talloc_stackframe() on all exit paths Reviewed-by: Stefan Metzmacher --- source3/printing/nt_printing.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/printing') diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index 7bf2c5530d..1539b89a0e 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -85,11 +85,13 @@ static bool print_driver_directories_init(void) if (service < 0) { /* We don't have a print$ share */ DEBUG(5, ("No print$ share has been configured.\n")); + talloc_free(mem_ctx); return true; } driver_path = lp_pathname(mem_ctx, service); if (driver_path == NULL) { + talloc_free(mem_ctx); return false; } -- cgit