diff --git a/lib/dns/sec/dst/dst_api.c b/lib/dns/sec/dst/dst_api.c index 537f080931..cb0ea91c79 100644 --- a/lib/dns/sec/dst/dst_api.c +++ b/lib/dns/sec/dst/dst_api.c @@ -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 @@ -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);