Some command line utilities do not free their messaging context
which results in extra entries being left in the msg.lock directory.
Signed-off-by: Andrew Walker <awalker@ixsystems.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Jan 5 21:30:08 UTC 2021 on sn-devel-184
goto fail;
}
+ cmdline_messaging_context_free();
TALLOC_FREE(frame);
poptFreeContext(pc);
return 0;
poptFreeContext(pc);
+ cmdline_messaging_context_free();
TALLOC_FREE(frame);
return rc;
}
ret = !do_command(evt_ctx, msg_ctx, argc, argv);
+ cmdline_messaging_context_free();
poptFreeContext(pc);
TALLOC_FREE(frame);
return ret;
}
done:
+ cmdline_messaging_context_free();
poptFreeContext(pc);
TALLOC_FREE(frame);
return ret;