From 968f72041021ccc0301220833f987dad8e3b9364 Mon Sep 17 00:00:00 2001 From: Swen Schillig Date: Mon, 19 Aug 2019 13:29:03 +0200 Subject: s3: free popt context in utils MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If done with popt context it should be free'd. Signed-off-by: Swen Schillig Reviewed-by: Andrew Bartlett Reviewed-by: Ralph Böhme --- source3/utils/smbtree.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/utils/smbtree.c') 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; } -- cgit v1.2.1