]> git.proxmox.com Git - mirror_qemu.git/commit - hmp.c
qom/object.c, hmp.c: fix string_output_get_string() memory leak
authorChen Fan <chen.fan.fnst@cn.fujitsu.com>
Mon, 18 Aug 2014 06:46:34 +0000 (14:46 +0800)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 2 Sep 2014 18:38:16 +0000 (22:38 +0400)
commit976620ac4018db142d82cd42bb7774f40290ce7e
tree2e3a3c21cd37c580b50e98b84cb94059ee1f222a
parentb0e90181e4d7244a9466447703acdb2cdd7abdaa
qom/object.c, hmp.c: fix string_output_get_string() memory leak

string_output_get_string() uses g_string_free(str, false) to
transfer the 'str' pointer to callers and never free it.

Signed-off-by: Chen Fan <chen.fan.fnst@cn.fujitsu.com>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Reviewed-by: Hu Tao <hutao@cn.fujitsu.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hmp.c
qom/object.c