mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-08 20:00:23 +01:00
libnm: fix memleak in nm_utils_hwaddr_canonical()
(cherry picked from commit c4e197d064)
This commit is contained in:
parent
e0aa016399
commit
4360b09f33
1 changed files with 1 additions and 1 deletions
|
|
@ -2771,7 +2771,7 @@ nm_utils_hwaddr_canonical (const char *asc, gssize length)
|
|||
if (nm_utils_hwaddr_aton (asc, buf, length) == NULL)
|
||||
return NULL;
|
||||
|
||||
return g_strdup (nm_utils_hwaddr_ntoa (buf, length));
|
||||
return nm_utils_hwaddr_ntoa (buf, length);
|
||||
}
|
||||
|
||||
/* This is used to possibly canonicalize values passed to MAC address property
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue