]> git.ipfire.org Git - thirdparty/qemu.git/commit
monitor: Fix memory leak with readline completion
authorStefan Weil <sw@weilnetz.de>
Mon, 14 May 2012 09:47:20 +0000 (09:47 +0000)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 25 Jun 2012 13:53:25 +0000 (08:53 -0500)
commitc49dd1bf6450b7880972b2f176ec10e8a496073c
treefd401b1e95ae7acc3f4e2ef26944cbed8e8ad99b
parentb4fcb4b4995b292b6013600af78d37416c6ebb34
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>
(cherry picked from commit fc9fa4bd0a295ac18808c4cd2cfac484bc4649d3)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
readline.c