]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
add missing buffer_free
authorTCY16 <tom@nlnetlabs.nl>
Mon, 7 Nov 2022 13:09:27 +0000 (14:09 +0100)
committerTCY16 <tom@nlnetlabs.nl>
Mon, 7 Nov 2022 13:09:27 +0000 (14:09 +0100)
examples/ldns-testpkts.c

index e2ca71fd05777df7822155e48d17cc15aa209393..09b5c23ba46119100012537fc5b1cdc1cf457ca1 100644 (file)
@@ -524,6 +524,7 @@ read_entry(FILE* in, const char* name, int *lineno, uint32_t* default_ttl,
                        /* store raw EDNS for matching */
                        cur_reply->raw_ednsdata = data_buffer2wire(hex_ednsdata_buffer);
 
+                       ldns_buffer_free(edns);
                        ldns_buffer_free(hex_ednsdata_buffer);
                        hex_ednsdata_buffer = NULL;
                } else if(reading_hex_ednsdata) {