Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndris Zeila <andris.zeila@zabbix.com>2017-01-24 15:49:23 +0300
committerAndris Zeila <andris.zeila@zabbix.com>2017-01-24 15:49:23 +0300
commit4124c90437d724ccbd867a31434fbc4420a1ce51 (patch)
treed0893590bb918e1406171572f4181439beb16c18 /include/zbxserialize.h
parent4a2aa3eebd8cf078febad306d5a22a176f28c886 (diff)
.......PS. [ZBXNEXT-3386] replaced malloc with zbx_malloc in string deserialization macro
Diffstat (limited to 'include/zbxserialize.h')
-rw-r--r--include/zbxserialize.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/zbxserialize.h b/include/zbxserialize.h
index 13b26538711..75d30948d0f 100644
--- a/include/zbxserialize.h
+++ b/include/zbxserialize.h
@@ -57,7 +57,7 @@
( \
memcpy(&value_len, buffer, sizeof(zbx_uint32_t)), \
0 < value_len ? ( \
- *value = malloc(value_len + 1), \
+ *value = zbx_malloc(NULL, value_len + 1), \
memcpy(*(value), buffer + sizeof(zbx_uint32_t), value_len), \
(*value)[value_len] = '\0' \
) : (*value = NULL, 0), \