mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 06:29:23 +01:00
monitor: Fix memory leak
In the case that we use iwmon --interface nlmon
This commit is contained in:
parent
38ab7511af
commit
73f5f0766d
@ -297,6 +297,7 @@ static void iwmon_interface_lookup_callback(int error, uint16_t type,
|
||||
(IFF_UP | IFF_ALLMULTI | IFF_NOARP))
|
||||
return;
|
||||
|
||||
l_free(monitor_interface->ifname);
|
||||
monitor_interface->ifname = l_strndup(ifname, ifname_len);
|
||||
monitor_interface->exists = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user