From f8a74684f4cc2ea757501043f7c2e3865b72dfb6 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(). (cherry picked from commit 966e3341a6fb0c2868be5355f077eeaa34025b28) --- 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 4e83b16700..7391b0f00a 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 == '\\')