]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
fix: free() call more than once with the same pointer 523/head
authorShchelkunov Artem <a.shchelkunov@ideco.ru>
Wed, 11 Aug 2021 10:14:43 +0000 (15:14 +0500)
committerShchelkunov Artem <a.shchelkunov@ideco.ru>
Wed, 11 Aug 2021 10:14:43 +0000 (15:14 +0500)
util/data/msgreply.c

index 00272fd1c64ec8d234e35d0a353f52ad06f4b49a..6c875674dab4cadf1dd69c0b41a2159ba49ff01d 100644 (file)
@@ -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;
        }