BUG: https://bugzilla.samba.org/show_bug.cgi?id=15979
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
pjob->filename, pjob->size ? "deleted" : "zero length" ));
unlink(pjob->filename);
pjob_delete(global_event_context(), msg_ctx, sharename, jobid);
- return NT_STATUS_OK;
+ goto out;
}
/* don't strip out characters like '$' from the printername */
/* make sure the database is up to date */
if (print_cache_expired(lp_const_servicename(snum), True))
print_queue_update(msg_ctx, snum, False);
-
+out:
+ talloc_free(tmp_ctx);
return NT_STATUS_OK;
fail: