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

2021-04-12 Thread Martin Wilck
On Fri, 2021-04-09 at 09:59 -0500, Benjamin Marzinski wrote: > On Fri, Apr 09, 2021 at 03:15:05PM +0800, lixiaokeng wrote: > > If checker_cleanup_thread is called after cleanup_checkers, > > the checker_class will not be freed. > > > > Here, we use free_checker_class instead of checker_class_unref

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

2021-04-09 Thread Benjamin Marzinski
On Fri, Apr 09, 2021 at 03:15:05PM +0800, lixiaokeng wrote: > If checker_cleanup_thread is called after cleanup_checkers, > the checker_class will not be freed. > > Here, we use free_checker_class instead of checker_class_unref > in checker_cleanup_thread. > > Signed-off-by: Lixiaokeng > --- >

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

2021-04-09 Thread lixiaokeng
If checker_cleanup_thread is called after cleanup_checkers, the checker_class will not be freed. Here, we use free_checker_class instead of checker_class_unref in checker_cleanup_thread. Signed-off-by: Lixiaokeng --- libmultipath/checkers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)