All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] minor cleanup in check_reuse_initrd
@ 2007-06-10  7:39 Michael Neuling
  2007-06-11  0:54 ` Horms
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Neuling @ 2007-06-10  7:39 UTC (permalink / raw)
  To: horms; +Cc: kexec

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] minor cleanup in check_reuse_initrd
  2007-06-10  7:39 [PATCH] minor cleanup in check_reuse_initrd Michael Neuling
@ 2007-06-11  0:54 ` Horms
  0 siblings, 0 replies; 2+ messages in thread
From: Horms @ 2007-06-11  0:54 UTC (permalink / raw)
  To: Michael Neuling; +Cc: kexec

On Sun, Jun 10, 2007 at 05:39:52PM +1000, Michael Neuling wrote:
> Signed-off-by: Michael Neuling <mikey@neuling.org>
> ---
> We are probably full of this stuff but...

A small step in the right direction :-)

Applied.

-- 
Horms
  H: http://www.vergenet.net/~horms/
  W: http://www.valinux.co.jp/en/


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-06-11  0:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-10  7:39 [PATCH] minor cleanup in check_reuse_initrd Michael Neuling
2007-06-11  0:54 ` Horms

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.