mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 22:10:09 +01:00
wifi: fix memleak in nm_ap_update_from_properties()
Fixes:59c8192b22(cherry picked from commit3e8d828008)
This commit is contained in:
parent
5fa0b8a222
commit
435dec420f
1 changed files with 5 additions and 2 deletions
|
|
@ -423,8 +423,11 @@ nm_ap_new_from_properties (const char *supplicant_path, GVariant *properties)
|
|||
if (v) {
|
||||
bytes = g_variant_get_fixed_array (v, &len, 1);
|
||||
if (len == ETH_ALEN) {
|
||||
addr = nm_utils_hwaddr_ntoa (bytes, len);
|
||||
nm_ap_set_address (ap, addr);
|
||||
char *a;
|
||||
|
||||
a = nm_utils_hwaddr_ntoa (bytes, len);
|
||||
nm_ap_set_address (ap, a);
|
||||
g_free (a);
|
||||
}
|
||||
g_variant_unref (v);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue