projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8629884
)
libqos: Correct memory leak
author
John Snow
<jsnow@redhat.com>
Mon, 4 Aug 2014 21:11:21 +0000
(17:11 -0400)
committer
Stefan Hajnoczi
<stefanha@redhat.com>
Fri, 15 Aug 2014 17:03:12 +0000
(18:03 +0100)
Fix a small memory leak inside of libqos, in the pc_alloc_init routine.
Signed-off-by: John Snow <jsnow@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
tests/libqos/malloc-pc.c
patch
|
blob
|
history
diff --git
a/tests/libqos/malloc-pc.c
b/tests/libqos/malloc-pc.c
index
db1496c
..
63af60a
100644
(file)
--- a/
tests/libqos/malloc-pc.c
+++ b/
tests/libqos/malloc-pc.c
@@
-67,5
+67,8
@@
QGuestAllocator *pc_alloc_init(void)
/* Respect PCI hole */
s->end = MIN(ram_size, 0xE0000000);
+ /* clean-up */
+ g_free(fw_cfg);
+
return &s->alloc;
}