1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

printing: Free talloc_stackframe() on all exit paths

Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Andrew Bartlett 2013-01-18 13:39:13 +11:00 committed by Stefan Metzmacher
parent 63a7d3817f
commit d90b709ebb

View File

@ -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;
}