mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-06 09:50:01 +00:00
s/realloc/PyMem_Realloc/ (#193)
This commit is contained in:
parent
a5c8bafad4
commit
c6c4e59f4c
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue