summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/printing/nt_printing.c2
1 files changed, 2 insertions, 0 deletions
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;
}