diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2020-02-24 17:43:54 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2020-02-24 17:43:54 +0000 |
commit | b1a99024f5d5599fb958f56e3f88c01618140317 (patch) | |
tree | 67395b57b088c50b47e093cbf302ce7e883e957f /usr.bin/dig/lib/dns/rdata/generic/ptr_12.c | |
parent | 7c6e2af877a2277d94b9a4ca39da39d0762ee19e (diff) |
We only need to free cname, ns, soa and tsig structs.
OK jsg
Diffstat (limited to 'usr.bin/dig/lib/dns/rdata/generic/ptr_12.c')
-rw-r--r-- | usr.bin/dig/lib/dns/rdata/generic/ptr_12.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/usr.bin/dig/lib/dns/rdata/generic/ptr_12.c b/usr.bin/dig/lib/dns/rdata/generic/ptr_12.c index 06ef868ef07..22f79115331 100644 --- a/usr.bin/dig/lib/dns/rdata/generic/ptr_12.c +++ b/usr.bin/dig/lib/dns/rdata/generic/ptr_12.c @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: ptr_12.c,v 1.5 2020/02/24 12:06:51 florian Exp $ */ +/* $Id: ptr_12.c,v 1.6 2020/02/24 17:43:52 florian Exp $ */ /* Reviewed: Thu Mar 16 14:05:12 PST 2000 by explorer */ @@ -117,15 +117,6 @@ tostruct_ptr(ARGS_TOSTRUCT) { return (ISC_R_SUCCESS); } -static inline void -freestruct_ptr(ARGS_FREESTRUCT) { - dns_rdata_ptr_t *ptr = source; - - REQUIRE(source != NULL); - REQUIRE(ptr->common.rdtype == dns_rdatatype_ptr); - - dns_name_free(&ptr->ptr); -} static unsigned char ip6_arpa_data[] = "\003IP6\004ARPA"; |