public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
From: David Teigland <teigland@fedoraproject.org>
To: cluster-cvs-relay@redhat.com
Subject: RHEL5 - fenced: add skip_undefined option fix
Date: Fri, 22 Aug 2008 10:51:00 -0000	[thread overview]
Message-ID: <20080821191806.A193A1202D0@lists.fedorahosted.org> (raw)

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;
 		}
 


                 reply	other threads:[~2008-08-21 19:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080821191806.A193A1202D0@lists.fedorahosted.org \
    --to=teigland@fedoraproject.org \
    --cc=cluster-cvs-relay@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).