mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-12 05:32:42 -04:00
let isc_lex_destroy() close sources.
This commit is contained in:
parent
5e8f2512a6
commit
b7415ddd79
1 changed files with 2 additions and 4 deletions
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
/*
|
||||
* Principal Author: Brian Wellington
|
||||
* $Id: dst_api.c,v 1.98 2001/11/30 02:11:04 bwelling Exp $
|
||||
* $Id: dst_api.c,v 1.99 2001/11/30 18:26:46 bwelling Exp $
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
|
@ -887,10 +887,8 @@ read_public_key(const char *filename, isc_mem_t *mctx, dst_key_t **keyp) {
|
|||
goto cleanup;
|
||||
|
||||
cleanup:
|
||||
if (lex != NULL) {
|
||||
RUNTIME_CHECK(isc_lex_close(lex) == ISC_R_SUCCESS);
|
||||
if (lex != NULL)
|
||||
isc_lex_destroy(&lex);
|
||||
}
|
||||
isc_mem_put(mctx, newfilename, newfilenamelen);
|
||||
|
||||
return (ret);
|
||||
|
|
|
|||
Loading…
Reference in a new issue