From 3a032dab10bf096b7b286963e11cd992df0c9ad5 Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Wed, 19 Dec 2012 15:29:17 +0100 Subject: gweb: Use glib memory functions Use for all memory allocation/dealocation operation the glib functions. This allows us to use g_mem_profile(). --- gweb/gresolv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gweb') diff --git a/gweb/gresolv.c b/gweb/gresolv.c index fbb7a54b..1f8e372c 100644 --- a/gweb/gresolv.c +++ b/gweb/gresolv.c @@ -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; -- cgit v1.2.3