diff options
Diffstat (limited to 'external/unbound/util/data/packed_rrset.c')
-rw-r--r-- | external/unbound/util/data/packed_rrset.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/external/unbound/util/data/packed_rrset.c b/external/unbound/util/data/packed_rrset.c index 0a5c9d327..66399085a 100644 --- a/external/unbound/util/data/packed_rrset.c +++ b/external/unbound/util/data/packed_rrset.c @@ -57,11 +57,9 @@ ub_packed_rrset_parsedelete(struct ub_packed_rrset_key* pkey, { if(!pkey) return; - if(pkey->entry.data) - free(pkey->entry.data); + free(pkey->entry.data); pkey->entry.data = NULL; - if(pkey->rk.dname) - free(pkey->rk.dname); + free(pkey->rk.dname); pkey->rk.dname = NULL; pkey->id = 0; alloc_special_release(alloc, pkey); |