aboutsummaryrefslogtreecommitdiff
path: root/hw/arm/digic_boards.c
diff options
context:
space:
mode:
authorGonglei <arei.gonglei@huawei.com>2015-03-05 10:58:32 +0800
committerMichael Tokarev <mjt@tls.msk.ru>2015-03-19 11:11:55 +0300
commit6e05a12f8f7f32a3fecbeb0c572d549a5f6e9177 (patch)
tree32b8b7e4255cb5efdb4c8ab354efd02a19cc3c55 /hw/arm/digic_boards.c
parent293811f6c1630e3b37aa9d214c6596ce854ab2c7 (diff)
arm: fix memory leak
Cc: Michael Tokarev <mjt@tls.msk.ru> Cc: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Gonglei <arei.gonglei@huawei.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'hw/arm/digic_boards.c')
-rw-r--r--hw/arm/digic_boards.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/arm/digic_boards.c b/hw/arm/digic_boards.c
index 7114c36e38..e576646e86 100644
--- a/hw/arm/digic_boards.c
+++ b/hw/arm/digic_boards.c
@@ -113,6 +113,7 @@ static void digic_load_rom(DigicBoardState *s, hwaddr addr,
error_report("Couldn't load rom image '%s'.", filename);
exit(1);
}
+ g_free(fn);
}
}