Closed miaovictor closed 10 months ago
I am running into a similar issue. Msgpack-c seems to leak memory on stm32. @miaovictor did you ever find a solution?
I also find msgpack memory leak on Jetson TX2, 300MB msgpack data consumes 1.8G heap after unpack. @towen Did you find a solution?
I just found the key to the problem,
msgpack did free the memory while malloc didn't.
just call malloc_trim
after unpack :>)
@OopsLouie , It seems that your solution is right. It is out of msgpack-c issue but maybe glibc implementation issue or just usage. So I close the issue. Thank you for the comments!
i wrap messagepack like this, bug it have memory Leak, could you help me check this code?
message_pack.h
message_pack.cpp