Re: [Qemu-devel] [PATCH 05/10] qapi: fix leak in unit tests

2013-05-10 Thread Luiz Capitulino
On Thu, 9 May 2013 21:20:57 -0500 Michael Roth wrote: > qmp_output_get_qobject() increments the qobject's reference count. Since > we currently pass this straight into qobject_to_json() so we can feed > the data into a QMP input visitor, we never actually free the underlying > qobject when qmp_o

[Qemu-devel] [PATCH 05/10] qapi: fix leak in unit tests

2013-05-09 Thread Michael Roth
qmp_output_get_qobject() increments the qobject's reference count. Since we currently pass this straight into qobject_to_json() so we can feed the data into a QMP input visitor, we never actually free the underlying qobject when qmp_output_visitor_cleanup() is called. This causes leaks on all of th