summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;