From: Michael Neuling <mikey@neuling.org>
To: horms@verge.net.au
Cc: kexec@lists.infradead.org
Subject: [PATCH] minor cleanup in check_reuse_initrd
Date: Sun, 10 Jun 2007 17:39:52 +1000 [thread overview]
Message-ID: <20457.1181461192@neuling.org> (raw)
Signed-off-by: Michael Neuling <mikey@neuling.org>
---
We are probably full of this stuff but...
kexec/kexec.c | 3 +++
1 file changed, 3 insertions(+)
Index: kexec-tools-testing/kexec/kexec.c
===================================================================
--- kexec-tools-testing.orig/kexec/kexec.c
+++ kexec-tools-testing/kexec/kexec.c
@@ -788,6 +788,9 @@ void check_reuse_initrd(void)
if (strstr(line, "retain_initrd") == NULL)
die("unrecoverable error: current boot didn't "
"retain the initrd for reuse.\n");
+ if (line)
+ free(line);
+ close(fp);
}
/* Arch hook for reuse_initrd */
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
next reply other threads:[~2007-06-10 7:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-10 7:39 Michael Neuling [this message]
2007-06-11 0:54 ` [PATCH] minor cleanup in check_reuse_initrd Horms
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=20457.1181461192@neuling.org \
--to=mikey@neuling.org \
--cc=horms@verge.net.au \
--cc=kexec@lists.infradead.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.