Skip to content

Commit

Permalink
s4: free popt context in dnsserver
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 24aa501 commit 5e1c7c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source4/dns_server/dlz_bind9.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 5e1c7c0

Please sign in to comment.