libnm-core: replace malloc() with g_malloc()

For consistency with the rest of the code, prefer g_malloc() over
malloc().
This commit is contained in:
Beniamino Galvani 2020-05-07 09:09:07 +02:00
parent 8cb58ef1eb
commit 966e3341a6

View file

@ -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 == '\\')