libnm: fix memleak in nm_utils_hwaddr_canonical()

This commit is contained in:
Thomas Haller 2015-01-28 22:34:11 +01:00
parent 8396c58167
commit c4e197d064

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