monitor: Fix memory leak with readline completion
commit7618be6230efebab643513eb92fd93c79da36e4d
authorStefan Weil <sw@weilnetz.de>
Mon, 14 May 2012 19:47:20 +0000 (14 21:47 +0200)
committerLuiz Capitulino <lcapitulino@redhat.com>
Fri, 15 Jun 2012 13:41:05 +0000 (15 10:41 -0300)
tree6c558618a1c5f632d91837a7e1d1b72db2c1e133
parentad608da51d59aed20905138bc4cc524bc77f42de
monitor: Fix memory leak with readline completion

Each string which is shown during readline completion in the QEMU monitor
is allocated dynamically but currently never deallocated.

Add the missing loop which calls g_free for the allocated strings.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
readline.c