diff options
| author | INADA Naoki <methane@users.noreply.github.com> | 2016-05-08 16:31:52 +0900 |
|---|---|---|
| committer | INADA Naoki <methane@users.noreply.github.com> | 2016-05-08 16:31:52 +0900 |
| commit | c6c4e59f4cb2ccb6de697de5d55a52e57f6a9a4e (patch) | |
| tree | d89c87ea1a19d5f22fcee5196dda362924e94902 /msgpack | |
| parent | a5c8bafad4ae29b0173f20dc1d7027219396f6aa (diff) | |
| download | msgpack-python-c6c4e59f4cb2ccb6de697de5d55a52e57f6a9a4e.tar.gz | |
s/realloc/PyMem_Realloc/ (#193)
Diffstat (limited to 'msgpack')
| -rw-r--r-- | msgpack/pack.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/msgpack/pack.h b/msgpack/pack.h index a75bdb0..d3aeff7 100644 --- a/msgpack/pack.h +++ b/msgpack/pack.h @@ -47,7 +47,7 @@ static inline int msgpack_pack_write(msgpack_packer* pk, const char *data, size_ if (len + l > bs) { bs = (len + l) * 2; - buf = (char*)realloc(buf, bs); + buf = (char*)PyMem_Realloc(buf, bs); if (!buf) return -1; } memcpy(buf + len, data, l); |
