summaryrefslogtreecommitdiff
path: root/gdhcp/client.c
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2012-12-19 15:29:16 +0100
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-12-20 15:07:04 +0200
commitf9ae386dac9a6c6c1370f0554bd6f63e7d97f747 (patch)
tree4845e9fd2378b0de0d90a3cc2b1feadce1ae0004 /gdhcp/client.c
parent13d88ea3301c9d333159d9eef486509b6a0836f3 (diff)
downloadconnman-f9ae386dac9a6c6c1370f0554bd6f63e7d97f747.tar.gz
connman-f9ae386dac9a6c6c1370f0554bd6f63e7d97f747.tar.bz2
connman-f9ae386dac9a6c6c1370f0554bd6f63e7d97f747.zip
gdhcp: 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 'gdhcp/client.c')
-rw-r--r--gdhcp/client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdhcp/client.c b/gdhcp/client.c
index 13ca442a..e8fa5d52 100644
--- a/gdhcp/client.c
+++ b/gdhcp/client.c
@@ -1510,7 +1510,7 @@ static char *malloc_option_value_string(uint8_t *option, GDHCPOptionType type)
return NULL;
upper_length = len_of_option_as_string[type] *
((unsigned)len / (unsigned)optlen);
- dest = ret = malloc(upper_length + 1);
+ dest = ret = g_malloc(upper_length + 1);
if (ret == NULL)
return NULL;