From: Shchelkunov Artem Date: Wed, 11 Aug 2021 10:14:43 +0000 (+0500) Subject: fix: free() call more than once with the same pointer X-Git-Tag: release-1.14.0rc1~86^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F523%2Fhead;p=thirdparty%2Funbound.git fix: free() call more than once with the same pointer --- diff --git a/util/data/msgreply.c b/util/data/msgreply.c index 00272fd1c..6c875674d 100644 --- a/util/data/msgreply.c +++ b/util/data/msgreply.c @@ -495,7 +495,6 @@ int reply_info_parse(sldns_buffer* pkt, struct alloc_cache* alloc, /* this also performs dname decompression */ if(!parse_create_msg(pkt, msg, alloc, qinf, rep, NULL)) { query_info_clear(qinf); - reply_info_parsedelete(*rep, alloc); *rep = NULL; return LDNS_RCODE_SERVFAIL; }