From: Swen Schillig Date: Mon, 19 Aug 2019 12:33:33 +0000 (+0200) Subject: s4: free popt context in dnsserver X-Git-Tag: tevent-0.10.1~221 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e1c7c084c85ea51f6843b95defee12ba6a8f0a0;p=thirdparty%2Fsamba.git s4: free popt context in dnsserver 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/source4/dns_server/dlz_bind9.c b/source4/dns_server/dlz_bind9.c index 872eb3e0c1f..9e4a3695866 100644 --- a/source4/dns_server/dlz_bind9.c +++ b/source4/dns_server/dlz_bind9.c @@ -554,10 +554,12 @@ static isc_result_t parse_options(struct dlz_bind9_data *state, default: state->log(ISC_LOG_ERROR, "dlz_bind9: Invalid option %s: %s", poptBadOption(pc, 0), poptStrerror(opt)); + poptFreeContext(pc); return ISC_R_FAILURE; } } + poptFreeContext(pc); return ISC_R_SUCCESS; }