diff options
author | John Snow <jsnow@redhat.com> | 2014-08-04 17:11:21 -0400 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2014-08-15 18:03:12 +0100 |
commit | f3cdcbaee16d32b52d5015a8b1e8ddf5a27f7089 (patch) | |
tree | d866e5797e844c6e30a853c8ed1fc8a284fb08fe /tests/libqos | |
parent | 86298845e127365e8a5b7419a5ee9039bbd1837f (diff) |
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')
-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; } |