diff options
author | Swen Schillig <swen@linux.ibm.com> | 2019-08-19 13:29:03 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2019-08-22 00:21:50 +0000 |
commit | 968f72041021ccc0301220833f987dad8e3b9364 (patch) | |
tree | 3a9a04d139dba2d7fd03c0c4e6ec63e4977ef938 /source3/utils/smbcontrol.c | |
parent | a7e7a62f7d3697660ba3575b94276e3a0489b57b (diff) | |
download | samba-968f72041021ccc0301220833f987dad8e3b9364.tar.gz |
s3: free popt context in utils
If done with popt context it should be free'd.
Signed-off-by: Swen Schillig <swen@linux.ibm.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
Diffstat (limited to 'source3/utils/smbcontrol.c')
-rw-r--r-- | source3/utils/smbcontrol.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c index 1a8e59a95e2..739ee93e28b 100644 --- a/source3/utils/smbcontrol.c +++ b/source3/utils/smbcontrol.c @@ -1751,6 +1751,8 @@ int main(int argc, const char **argv) * shell needs 0. */ ret = !do_command(evt_ctx, msg_ctx, argc, argv); + + poptFreeContext(pc); TALLOC_FREE(frame); return ret; } |