[PATCH 5/9] quorum: don't leak memory on error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From: "Fabio M. Di Nitto" <fdinitto@xxxxxxxxxx>

Signed-off-by: Fabio M. Di Nitto <fdinitto@xxxxxxxxxx>
:100644 100644 73c595b... e950402... M	exec/vsf_quorum.c
 exec/vsf_quorum.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/exec/vsf_quorum.c b/exec/vsf_quorum.c
index 73c595b..e950402 100644
--- a/exec/vsf_quorum.c
+++ b/exec/vsf_quorum.c
@@ -291,6 +291,7 @@ static char *quorum_exec_init_fn (struct corosync_api_v1 *api)
 			log_printf (LOGSYS_LEVEL_CRIT, 
 				"Quorum provider: %s failed to initialize.",
+			free(quorum_module);
 			return (error);

discuss mailing list

[Corosync Project]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Free Online Dating]     [Linux Kernel]     [Linux SCSI]     [XFree86]

Add to Google Powered by Linux