STABLE2 - fenced: add skip_undefined option fix

David Teigland teigland@fedoraproject.org
Thu Aug 21 19:56:00 GMT 2008


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=97b34a12441f5149ccb9d37b29b01db2cb073028
Commit:        97b34a12441f5149ccb9d37b29b01db2cb073028
Parent:        c9ce9e3c7e6b5eac73ecca416a5fe98f72bbd7aa
Author:        David Teigland <teigland@redhat.com>
AuthorDate:    Thu Aug 21 14:07:50 2008 -0500
Committer:     David Teigland <teigland@redhat.com>
CommitterDate: Thu Aug 21 14:09:52 2008 -0500

fenced: add skip_undefined option fix

fix the previous commit

bz 459127

Signed-off-by: David Teigland <teigland@redhat.com>
---
 fence/fenced/main.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/fence/fenced/main.c b/fence/fenced/main.c
index 50b9aa2..e73531e 100644
--- a/fence/fenced/main.c
+++ b/fence/fenced/main.c
@@ -63,7 +63,7 @@ static int setup_ccs(fd_t *fd)
 	char path[256];
 	char *name = NULL, *str = NULL;
 	int error, cd, i = 0, count = 0;
-
+	int num_methods;
 
 	while ((cd = ccs_connect()) < 0) {
 		sleep(1);
@@ -198,6 +198,7 @@ static int setup_ccs(fd_t *fd)
 
 		if (comline.skip_undefined && !num_methods) {
 			log_debug("skip %s with zero methods", name);
+			free(name);
 			continue;
 		}
 



More information about the Cluster-cvs mailing list