From: Mark Andrews Date: Thu, 26 Oct 2017 22:58:55 +0000 (+1100) Subject: address resource leak [RT #46413] X-Git-Tag: v9.12.0b2~53 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c341e524dc671fdd5b2a8989c015a7b1b7b1b98a;p=thirdparty%2Fbind9.git address resource leak [RT #46413] --- diff --git a/lib/dns/rbtdb.c b/lib/dns/rbtdb.c index 850f4b3131e..85dabd2578b 100644 --- a/lib/dns/rbtdb.c +++ b/lib/dns/rbtdb.c @@ -7487,7 +7487,8 @@ deserialize32(void *arg, FILE *f, off_t offset) { header = (rbtdb_file_header_t *)(base + offset); if (!match_header_version(header)) { - return (ISC_R_FAILURE); + result = ISC_R_INVALIDFILE; + goto cleanup; } if (header->tree != 0) {