summaryrefslogtreecommitdiff
path: root/drill/work.c
diff options
context:
space:
mode:
Diffstat (limited to 'drill/work.c')
-rw-r--r--drill/work.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drill/work.c b/drill/work.c
index 653145fe522bb..370d48b01b3e1 100644
--- a/drill/work.c
+++ b/drill/work.c
@@ -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;
}