From c4e197d06477a7e02697bd3f6a8fa396238a8bd9 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 28 Jan 2015 22:34:11 +0100 Subject: [PATCH] libnm: fix memleak in nm_utils_hwaddr_canonical() --- libnm-core/nm-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnm-core/nm-utils.c b/libnm-core/nm-utils.c index 6ced0937f3..4532ab26db 100644 --- a/libnm-core/nm-utils.c +++ b/libnm-core/nm-utils.c @@ -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