projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9ae386
)
gweb: Use glib memory functions
author
Daniel Wagner
<daniel.wagner@bmw-carit.de>
Wed, 19 Dec 2012 14:29:17 +0000
(15:29 +0100)
committer
Patrik 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
patch
|
blob
|
history
diff --git
a/gweb/gresolv.c
b/gweb/gresolv.c
index
fbb7a54
..
1f8e372
100644
(file)
--- 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;