summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2013-01-18 13:39:13 +1100
committerStefan Metzmacher <metze@samba.org>2013-01-19 09:42:02 +0100
commitd90b709ebb22fb40cbd46bdddd28d9ec1be7b0ce (patch)
tree58468f3345c861f7d68e05905879728f040d872b /source3/printing
parent63a7d3817fae3ec190a7919521cc0f5dbdea3b64 (diff)
downloadsamba-d90b709ebb22fb40cbd46bdddd28d9ec1be7b0ce.tar.gz
samba-d90b709ebb22fb40cbd46bdddd28d9ec1be7b0ce.tar.bz2
samba-d90b709ebb22fb40cbd46bdddd28d9ec1be7b0ce.zip
printing: Free talloc_stackframe() on all exit paths
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/printing')
-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;
}