]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
Another resource leak from Maxime Villard
authorWillem Toorop <willem@NLnetLabs.nl>
Thu, 13 Dec 2012 20:14:32 +0000 (20:14 +0000)
committerWillem Toorop <willem@NLnetLabs.nl>
Thu, 13 Dec 2012 20:14:32 +0000 (20:14 +0000)
drill/work.c

index 653145fe522bbb891818f925d837599dad1b52a6..370d48b01b3e134cac61beb450c21dd3a330fbc7 100644 (file)
@@ -235,6 +235,7 @@ dump_hex(const ldns_pkt *pkt, const char *filename)
        if (status != LDNS_STATUS_OK) {
                error("Unable to convert packet: error code %u", status);
                LDNS_FREE(wire);
+               fclose(fp);
                return;
        }