mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 07:08:02 +02:00
libnm: fix memleak in nm_utils_hwaddr_canonical()
This commit is contained in:
parent
8396c58167
commit
c4e197d064
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)
|
if (nm_utils_hwaddr_aton (asc, buf, length) == NULL)
|
||||||
return 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
|
/* This is used to possibly canonicalize values passed to MAC address property
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue