Re: [dm-devel] [dm- devel][PATCH] libmultipath: fix a memory leak in dm_get_maps

2020-07-30 Thread Benjamin Marzinski
On Thu, Jul 30, 2020 at 12:01:36PM +0800, lixiaokeng wrote: > In dm_get_maps func, if vector_alloc_slot(mp) fails, the > mpp should be free. > > Here we call free_multipath(mpp, KEEP_PATHS) to free map. > > Signed-off-by: Lixiaokeng > Signed-off-by: Zhiqiang Liu Reviewed-by: Benjamin

[dm-devel] [dm- devel][PATCH] libmultipath: fix a memory leak in dm_get_maps

2020-07-29 Thread lixiaokeng
In dm_get_maps func, if vector_alloc_slot(mp) fails, the mpp should be free. Here we call free_multipath(mpp, KEEP_PATHS) to free map. Signed-off-by: Lixiaokeng Signed-off-by: Zhiqiang Liu --- libmultipath/devmapper.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git