From: Wouter Wijngaards Date: Tue, 22 Sep 2009 07:14:34 +0000 (+0000) Subject: Fix bug 275. X-Git-Tag: release-1.6.2~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f29d3538dc2fe1b695aa04ea594b436483828906;p=thirdparty%2Fldns.git Fix bug 275. --- diff --git a/Changelog b/Changelog index 917543c8..04331320 100644 --- a/Changelog +++ b/Changelog @@ -6,6 +6,7 @@ * Fix signature creation when TTLs are different for RRs in RRset. * bug273: fix so EDNS rdata is included in pkt to wire conversion. * bug274: fix use of c++ keyword 'class' for RR class in the code. + * bug275: fix memory leak of packet edns rdata. 1.6.1 2009-09-14 * --enable-gost : use the GOST algorithm (experimental). diff --git a/packet.c b/packet.c index da953e8e..29506286 100644 --- a/packet.c +++ b/packet.c @@ -793,6 +793,7 @@ ldns_pkt_free(ldns_pkt *packet) ldns_rr_list_deep_free(packet->_authority); ldns_rr_list_deep_free(packet->_additional); ldns_rr_free(packet->_tsig_rr); + ldns_rdf_deep_free(packet->_edns_data); LDNS_FREE(packet); } }