From 966e3341a6fb0c2868be5355f077eeaa34025b28 Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Thu, 7 May 2020 09:09:07 +0200 Subject: [PATCH] libnm-core: replace malloc() with g_malloc() For consistency with the rest of the code, prefer g_malloc() over malloc(). --- 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 8bddbd23ea..7b69b4ef7a 100644 --- a/libnm-core/nm-utils.c +++ b/libnm-core/nm-utils.c @@ -5444,7 +5444,7 @@ attribute_escape (const char *src, char c1, char c2) { char *ret, *dest; - dest = ret = malloc (strlen (src) * 2 + 1); + dest = ret = g_malloc (strlen (src) * 2 + 1); while (*src) { if (*src == c1 || *src == c2 || *src == '\\')