From b7415ddd792b0e57789b14564ed0fafac1708cf3 Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Fri, 30 Nov 2001 18:26:46 +0000 Subject: [PATCH] let isc_lex_destroy() close sources. --- lib/dns/sec/dst/dst_api.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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);