Skip to contentSkip to conversation

minor cleanup in check_reuse_initrd

PATCH Applied Michael Neuling 2 participants 2 messages Jun 10, 2007 – Jun 11, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 minor cleanup in check_reuse_initrd

---
We are probably full of this stuff but...

 kexec/kexec.c |    3 +++
 1 file changed, 3 insertions(+)
kexec/kexec.c +3 -0
Index: 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
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

Applied
#1 lore raw
Quoted 3 lines · Michael Neuling

---
We are probably full of this stuff but...

A small step in the right direction :-)

Applied.

Signature · 9 lines
Horms
  H: http://www.vergenet.net/~horms/
  W: http://www.valinux.co.jp/en/


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec