From: Swen Schillig Date: Mon, 19 Aug 2019 12:11:54 +0000 (+0200) Subject: rpcclient: free popt context when done X-Git-Tag: tevent-0.10.1~225 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=355c9f5aca2af8db793bc3e695dc9b0d37e86483;p=thirdparty%2Fsamba.git rpcclient: free popt context when done If done with popt context it should be free'd. Signed-off-by: Swen Schillig Reviewed-by: Andrew Bartlett Reviewed-by: Ralph Böhme --- diff --git a/source3/rpcclient/cmd_witness.c b/source3/rpcclient/cmd_witness.c index 733424beac3..f5f0c6293fd 100644 --- a/source3/rpcclient/cmd_witness.c +++ b/source3/rpcclient/cmd_witness.c @@ -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; }