Commit 966e3341 authored by Beniamino Galvani's avatar Beniamino Galvani

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

For consistency with the rest of the code, prefer g_malloc() over
malloc().
parent 8cb58ef1
......@@ -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 == '\\')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment