libnm: fix memleak in nm_utils_hwaddr_canonical()

(cherry picked from commit c4e197d064)
This commit is contained in:
Thomas Haller 2015-01-28 22:34:11 +01:00
parent e0aa016399
commit 4360b09f33

View file

@ -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