8000 s/realloc/PyMem_Realloc/ (#193) · lbolla/msgpack-python@c6c4e59 · GitHub
[go: up one dir, main page]

Skip to content

Commit c6c4e59

Browse files
committed
s/realloc/PyMem_Realloc/ (msgpack#193)
1 parent a5c8baf commit c6c4e59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

msgpack/pack.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static inline int msgpack_pack_write(msgpack_packer* pk, const char *data, size_
4747

4848
if (len + l > bs) {
4949
bs = (len + l) * 2;
50-
buf = (char*)realloc(buf, bs);
50+
buf = (char*)PyMem_Realloc(buf, bs);
5151
if (!buf) return -1;
5252
}
5353
memcpy(buf + len, data, l);

0 commit comments

Comments
 (0)
0