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:
parent
63a7d3817f
commit
d90b709ebb
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user