Fixed potential memory leak when processing routes from the kernel.
This commit is contained in:
parent
29388829fa
commit
862ef49f85
|
@ -534,6 +534,7 @@ static void process_route(private_kernel_netlink_net_t *this, struct nlmsghdr *h
|
|||
switch (rta->rta_type)
|
||||
{
|
||||
case RTA_PREFSRC:
|
||||
DESTROY_IF(host);
|
||||
host = host_create_from_chunk(msg->rtm_family,
|
||||
chunk_create(RTA_DATA(rta), RTA_PAYLOAD(rta)), 0);
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue