Re: [dm-devel] [PATCH v2 82/84] libmultipath: free pp if store_path fails in disassemble_map

2020-08-17 Thread Benjamin Marzinski
On Wed, Aug 12, 2020 at 01:35:59PM +0200, mwi...@suse.com wrote: > From: Zhiqiang Liu > > In disassemble_map func, one pp will be allocated and stored in > pgp->paths. However, if store_path fails, pp will not be freed, > then memory leak problem occurs. > > Here, we will call free_path to free

[dm-devel] [PATCH v2 82/84] libmultipath: free pp if store_path fails in disassemble_map

2020-08-12 Thread mwilck
From: Zhiqiang Liu In disassemble_map func, one pp will be allocated and stored in pgp->paths. However, if store_path fails, pp will not be freed, then memory leak problem occurs. Here, we will call free_path to free pp when store_path fails. Signed-off-by: Zhiqiang Liu Signed-off-by: