let isc_lex_destroy() close sources.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user