Open HarukaMa opened 10 months ago
Looks like RESP3 usage has memory leaks for all commands that have map replies. I had it during streams and TS usage.
Is there any interest in fixing this? I can give it a try but I need to know where to start looking.
X-posting from https://github.com/redis/redis-py/issues/3025.
Version: Redis 7.0.13, redis-py 5.0.1, hiredis 2.2.3
Platform: Python 3.11.6 on Debian sid
Description:
When using hiredis with RESP3,
hgetall
leaks memory. And it leaks hard - it seems all requested data will persistently live in the memory.It's easy to reproduce:
hget
andhvals
are fine, and when using RESP2 it works as intended as well.Stack from memray (most recent call last):
All leaks happen on the last call. (Captured with program in production which uses async Redis, not from the example above)