s4: free popt context in client
authorSwen Schillig <swen@linux.ibm.com>
Mon, 19 Aug 2019 12:29:22 +0000 (14:29 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 22 Aug 2019 00:21:50 +0000 (00:21 +0000)
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>
source4/client/cifsdd.c

index dfdaf048b3f4c863e6e0fb6a96f7bc512201b5e7..dadff84bda53df3af74676ab50a5cb7ba72b5be2 100644 (file)
@@ -689,6 +689,8 @@ int main(int argc, const char ** argv)
        CatchSignal(SIGINT, dd_handle_signal);
        CatchSignal(SIGUSR1, dd_handle_signal);
        rc = copy_files(ev, cmdline_lp_ctx);
+
+       poptFreeContext(pctx);
        talloc_free(ev);
        return rc;
 }