We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5c8baf commit c6c4e59Copy full SHA for c6c4e59
1 file changed
msgpack/pack.h
@@ -47,7 +47,7 @@ static inline int msgpack_pack_write(msgpack_packer* pk, const char *data, size_
47
48
if (len + l > bs) {
49
bs = (len + l) * 2;
50
- buf = (char*)realloc(buf, bs);
+ buf = (char*)PyMem_Realloc(buf, bs);
51
if (!buf) return -1;
52
}
53
memcpy(buf + len, data, l);
0 commit comments