Describe the bug The main function has memory leak in utils\lru\lfu-simulation.c

To reproduce

Redis [BUG] The main function has memory leak in utils\lru\lfu-simulation.c

Expected behavior

it need free entries variable in the last Redis [BUG] The main function has memory leak in utils\lru\lfu-simulation.c

Additional information

utils\lru\lfu-simulation.c

Comment From: enjoy-binbin

thanks for the report, the utils is just a dev toy, and we can fix it or no need to fix it

the entire utils/lru dir look a bit outupdate, maybe we can remove it? @oranagra

Comment From: oranagra

It's not a leak if it doesn't grow over time, or isn't kept after the process no longer needs it... I.e. we never bother releasing memory before terminating the process, that's just a waste of time with no benefits. Also, FYI, valgring doesn't warn on memory not released at exit, only at allocations that doesn't have any references to them.