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/smbtree.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/smbtree.c')
-rw-r--r-- | source3/utils/smbtree.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/utils/smbtree.c b/source3/utils/smbtree.c index 9f589b4060f..0a0dac0f9d5 100644 --- a/source3/utils/smbtree.c +++ b/source3/utils/smbtree.c @@ -340,11 +340,13 @@ int main(int argc, char *argv[]) /* Now do our stuff */ if (!print_tree(popt_get_cmdline_auth_info())) { + poptFreeContext(pc); TALLOC_FREE(frame); return 1; } popt_free_cmdline_auth_info(); + poptFreeContext(pc); TALLOC_FREE(frame); return 0; } |