Skip to content

Commit

Permalink
rpcclient: free popt context when done
Browse files Browse the repository at this point in the history
If done with popt context it should be free'd.

Signed-off-by: Swen Schillig <[email protected]>
Reviewed-by: Andrew Bartlett <[email protected]>
Reviewed-by: Ralph Böhme <[email protected]>
  • Loading branch information
sswen authored and abartlet committed Aug 22, 2019
1 parent 968f720 commit 355c9f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source3/rpcclient/cmd_witness.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 355c9f5

Please sign in to comment.