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>
This commit is contained in:
parent
86298845e1
commit
f3cdcbaee1
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user