diff options
author | Naoki INADA <inada-n@klab.jp> | 2009-07-01 20:55:24 +0900 |
---|---|---|
committer | Naoki INADA <inada-n@klab.jp> | 2009-07-01 20:55:24 +0900 |
commit | 2f095515735b136d04d7f05713505e97a3d25aa6 (patch) | |
tree | d8753e3791ad93a15bcd517456304499d3a98060 /msgpack/pack.h | |
parent | 17cbfa66ae0d6171b0e29699459a3dfbf30e06f2 (diff) | |
download | msgpack-python-2f095515735b136d04d7f05713505e97a3d25aa6.tar.gz |
Fix memory leak. Remove stream packing feature. Add errorcheck in packing.
Diffstat (limited to 'msgpack/pack.h')
-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 d7e0867..58f021e 100644 --- a/msgpack/pack.h +++ b/msgpack/pack.h @@ -72,7 +72,7 @@ static inline int msgpack_pack_write(msgpack_packer* pk, const char *data, size_ if (len + l > bs) { bs = (len + l) * 2; - buf = realloc(pk->buf, bs); + buf = realloc(buf, bs); if (!buf) return -1; } memcpy(buf + len, data, l); |