diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-11-25 17:14:19 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-11-25 17:14:19 +0000 |
commit | 7eb250e9c52813f30fef256b97f08a6871fd381a (patch) | |
tree | 434da79bcc882cb0d88a7db1ad71003b51aad091 /event_tagging.c | |
parent | 98b5453ecdd6a474ba8c3495285e607d5b7a8e57 (diff) | |
download | libevent-7eb250e9c52813f30fef256b97f08a6871fd381a.tar.gz |
r14939@tombo: nickm | 2007-11-25 11:59:26 -0500
New function event_set_mem_functions to replace internal calls to malloc, free, etc with a user-supplied functions.
svn:r541
Diffstat (limited to 'event_tagging.c')
-rw-r--r-- | event_tagging.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/event_tagging.c b/event_tagging.c index 1646fb10..027ff08a 100644 --- a/event_tagging.c +++ b/event_tagging.c @@ -63,6 +63,7 @@ #include "event.h" #include "log.h" +#include "mm-internal.h" int decode_int(uint32_t *pnumber, struct evbuffer *evbuf); @@ -347,7 +348,7 @@ evtag_unmarshal_string(struct evbuffer *evbuf, uint8_t need_tag, if (evtag_unmarshal(evbuf, &tag, _buf) == -1 || tag != need_tag) return (-1); - *pstring = calloc(EVBUFFER_LENGTH(_buf) + 1, 1); + *pstring = event_calloc(EVBUFFER_LENGTH(_buf) + 1, 1); if (*pstring == NULL) event_err(1, "%s: calloc", __func__); evbuffer_remove(_buf, *pstring, EVBUFFER_LENGTH(_buf)); |