diff options
| author | John Snow | 2014-08-04 23:11:21 +0200 |
|---|---|---|
| committer | Stefan Hajnoczi | 2014-08-15 19:03:12 +0200 |
| commit | f3cdcbaee16d32b52d5015a8b1e8ddf5a27f7089 (patch) | |
| tree | d866e5797e844c6e30a853c8ed1fc8a284fb08fe /tests/libqos/malloc-pc.c | |
| parent | qtest: Adding qtest_memset and qmemset. (diff) | |
| download | qemu-f3cdcbaee16d32b52d5015a8b1e8ddf5a27f7089.tar.gz qemu-f3cdcbaee16d32b52d5015a8b1e8ddf5a27f7089.tar.xz qemu-f3cdcbaee16d32b52d5015a8b1e8ddf5a27f7089.zip | |
libqos: Correct memory leak
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>
Diffstat (limited to 'tests/libqos/malloc-pc.c')
| -rw-r--r-- | tests/libqos/malloc-pc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/libqos/malloc-pc.c b/tests/libqos/malloc-pc.c index db1496c667..63af60ac17 100644 --- 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; } |
