Blockdata leak.

This commit is contained in:
Simon Kelley
2014-01-31 12:42:54 +00:00
parent 1d97ac4fd2
commit 072e81b3c5

View File

@@ -195,8 +195,9 @@ static void cache_free(struct crec *crecp)
big_free = crecp->name.bname; big_free = crecp->name.bname;
crecp->flags &= ~F_BIGNAME; crecp->flags &= ~F_BIGNAME;
} }
#ifdef HAVE_DNSSEC #ifdef HAVE_DNSSEC
else if (crecp->flags & (F_DNSKEY | F_DS)) if (crecp->flags & (F_DNSKEY | F_DS))
blockdata_free(crecp->addr.key.keydata); blockdata_free(crecp->addr.key.keydata);
#endif #endif
} }