]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
rpcclient: free popt context when done
authorSwen Schillig <swen@linux.ibm.com>
Mon, 19 Aug 2019 12:11:54 +0000 (14:11 +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>
source3/rpcclient/cmd_witness.c

index 733424beac333f872ac7fdadd9a7b68794c02032..f5f0c6293fd4182812cf6bf3e216413772912941 100644 (file)
@@ -213,6 +213,7 @@ static WERROR cmd_witness_Register(struct rpc_pipe_client *cli,
        d_printf("%x:%s\n", hnd.handle_type, GUID_string(frame, &hnd.uuid));
 
 done:
+       poptFreeContext(optCon);
        talloc_free(frame);
        return result;
 }