Memory leak in multipathd.
Quoted 4 lines
I was testing multipath with more than 3000paths, I found multipathd using around 2.3GB of memory.
After closely digging the code, I found In functiondm_get_name()we are callingdm_get_maps()which will allocate memory for mmp. But we are not freeing the same after search is done.
I have made a fix by callingfree_multipath(),w ith this fix multipathd is using less than 200MB of memory.
Hi Hari,
are you reporting on the upstream multipath-tools code ? I already see multipath vector freeing there ...