mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
Memory leak in error path.
This commit is contained in:
committed by
Simon Kelley
parent
490f90758d
commit
fc2833f172
@@ -1394,8 +1394,11 @@ static int tcp_check_for_unsigned_zone(time_t now, struct dns_header *header, s
|
|||||||
struct crec *crecp = cache_find_by_name(NULL, name_start, now, F_DS);
|
struct crec *crecp = cache_find_by_name(NULL, name_start, now, F_DS);
|
||||||
|
|
||||||
if (--(*keycount) == 0)
|
if (--(*keycount) == 0)
|
||||||
return STAT_BOGUS;
|
{
|
||||||
|
free(packet);
|
||||||
|
return STAT_BOGUS;
|
||||||
|
}
|
||||||
|
|
||||||
if (crecp && (crecp->flags & F_DNSSECOK))
|
if (crecp && (crecp->flags & F_DNSSECOK))
|
||||||
{
|
{
|
||||||
free(packet);
|
free(packet);
|
||||||
|
|||||||
Reference in New Issue
Block a user