mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-08-14 06:28:16 +00:00
vsf_quorum: fix potential memory leak
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com> Reviewed-by: Angus Salkeld <asalked@redhat.com>
This commit is contained in:
parent
6f5e3293ef
commit
de914ca73b
@ -252,7 +252,7 @@ static struct quorum_callin_functions callins = {
|
||||
|
||||
static int quorum_exec_init_fn (struct corosync_api_v1 *api)
|
||||
{
|
||||
char *quorum_module;
|
||||
char *quorum_module = NULL;
|
||||
|
||||
#ifdef COROSYNC_SOLARIS
|
||||
logsys_subsys_init();
|
||||
@ -280,6 +280,11 @@ static int quorum_exec_init_fn (struct corosync_api_v1 *api)
|
||||
}
|
||||
}
|
||||
|
||||
if (quorum_module) {
|
||||
free(quorum_module);
|
||||
quorum_module = NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
* setting quorum_type and primary_designated in the right order is important
|
||||
* always try to lookup/init a quorum module, then revert back to be quorate
|
||||
|
Loading…
Reference in New Issue
Block a user