From 8382fc3e85df3fd466225d96c78847a4dacdeb34 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Wed, 22 Dec 2010 12:14:11 +0000 Subject: [PATCH] Fix memory leak in debug mode of restart_clvmd() error path --- WHATS_NEW | 1 + daemons/clvmd/clvmd-command.c | 1 + 2 files changed, 2 insertions(+) diff --git a/WHATS_NEW b/WHATS_NEW index 51e2eab81..e475f6757 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.80 - ==================================== + Fix memory leak in debug mode of restart_clvmd() error path. Log error message for pthread_join() failure in clvmd. Version 2.02.79 - 20th December 2010 diff --git a/daemons/clvmd/clvmd-command.c b/daemons/clvmd/clvmd-command.c index 49f119719..73c82579e 100644 --- a/daemons/clvmd/clvmd-command.c +++ b/daemons/clvmd/clvmd-command.c @@ -408,6 +408,7 @@ out: for (i = 0; i < argc && argv[i]; i++) free(argv[i]); free(argv); + free(debug_arg); return 0; }