gweb: Use glib memory functions
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Wed, 19 Dec 2012 14:29:17 +0000 (15:29 +0100)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Thu, 20 Dec 2012 13:07:14 +0000 (15:07 +0200)
Use for all memory allocation/dealocation operation the glib
functions. This allows us to use g_mem_profile().

gweb/gresolv.c

index fbb7a54..1f8e372 100644 (file)
@@ -494,7 +494,7 @@ static void sort_and_return_results(struct resolv_lookup *lookup)
                } else
                        continue;
 
-               results[n++] = strdup(buf);
+               results[n++] = g_strdup(buf);
        }
 
        results[n++] = NULL;