public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* RHEL5 - fenced: add skip_undefined option fix
@ 2008-08-22 10:51 David Teigland
  0 siblings, 0 replies; only message in thread
From: David Teigland @ 2008-08-22 10:51 UTC (permalink / raw)
  To: cluster-cvs-relay

Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=42106103faa70425afe6dc242cb6b52a05dd3851
Commit:        42106103faa70425afe6dc242cb6b52a05dd3851
Parent:        d2184b7d13e079a49a68b5ac93d8fe7ffdce8f42
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:07:50 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 65c8a40..f2b5d07 100644
--- a/fence/fenced/main.c
+++ b/fence/fenced/main.c
@@ -76,7 +76,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);
@@ -197,6 +197,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;
 		}
 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-08-21 19:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-22 10:51 RHEL5 - fenced: add skip_undefined option fix David Teigland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).