qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 06/61] pc: fix file stream leak in multiboot loader.


From: Isaku Yamahata
Subject: [Qemu-devel] [PATCH 06/61] pc: fix file stream leak in multiboot loader.
Date: Wed, 30 Sep 2009 19:17:42 +0900

fix file stream leak in load_multiboot() in pc.c
There is no reason to keep them open.

Signed-off-by: Isaku Yamahata <address@hidden>
---
 hw/pc.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/hw/pc.c b/hw/pc.c
index bc2875e..0d85914 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -754,6 +754,7 @@ static int load_multiboot(void *fw_cfg,
                             initrd_filename, mb_mod_length);
                     exit(1);
                 }
+                fclose(f);
 
                 mb_mod_count++;
                 stl_phys(mb_mod_info + 0, mb_mod_start);
-- 
1.6.0.2





reply via email to

[Prev in Thread] Current Thread [Next in Thread]