]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
remove memory leak.
authorWouter Wijngaards <wouter@NLnetLabs.nl>
Thu, 18 Oct 2007 22:11:04 +0000 (22:11 +0000)
committerWouter Wijngaards <wouter@NLnetLabs.nl>
Thu, 18 Oct 2007 22:11:04 +0000 (22:11 +0000)
examples/ldns-testpkts.c

index c4e6b6c06d980bbb3124ce163b765d23a1ff6257..d11929b7939a09a14e4ef556514137a1824de1ad 100644 (file)
@@ -534,6 +534,8 @@ read_datafile(const char* name)
        verbose(1, "%s: Read %d entries\n", prog_name, entry_num);
 
        fclose(in);
+       ldns_rdf_deep_free(origin);
+       ldns_rdf_deep_free(prev_rr);
        return list;
 }