[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [RFC PATCH v6 4/4] free rom->data when rom_reset
From: |
Olivia Yin |
Subject: |
[Qemu-ppc] [RFC PATCH v6 4/4] free rom->data when rom_reset |
Date: |
Tue, 27 Nov 2012 15:07:39 +0800 |
Signed-off-by: Olivia Yin <address@hidden>
---
hw/loader.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/hw/loader.c b/hw/loader.c
index d075ed3..2dde6ba 100644
--- a/hw/loader.c
+++ b/hw/loader.c
@@ -752,11 +752,8 @@ static void rom_reset(void *unused)
continue;
}
cpu_physical_memory_write_rom(rom->addr, rom->data, rom->romsize);
- if (rom->isrom) {
- /* rom needs to be written only once */
- g_free(rom->data);
- rom->data = NULL;
- }
+ g_free(rom->data);
+ rom->data = NULL;
}
}
--
1.7.1