summaryrefslogtreecommitdiff
path: root/gweb
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2012-12-19 14:29:17 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-12-20 13:07:14 (GMT)
commit3a032dab10bf096b7b286963e11cd992df0c9ad5 (patch)
treefb1e2a5967fb5ec6524cd11254f3d0866098fac0 /gweb
parentf9ae386dac9a6c6c1370f0554bd6f63e7d97f747 (diff)
downloadconnman-3a032dab10bf096b7b286963e11cd992df0c9ad5.zip
connman-3a032dab10bf096b7b286963e11cd992df0c9ad5.tar.gz
connman-3a032dab10bf096b7b286963e11cd992df0c9ad5.tar.bz2
gweb: Use glib memory functions
Use for all memory allocation/dealocation operation the glib functions. This allows us to use g_mem_profile().
Diffstat (limited to 'gweb')
-rw-r--r--gweb/gresolv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gweb/gresolv.c b/gweb/gresolv.c
index fbb7a54..1f8e372 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;