Re: [Qemu-devel] [PATCH 02/17] object: fix potential leak in getters

2017-05-09 Thread Eric Blake
On 05/09/2017 12:35 PM, Marc-André Lureau wrote: > If the property is not of the requested type, the getters will leak a > QObject. > > Signed-off-by: Marc-André Lureau > --- > qom/object.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) Reviewed-by:

[Qemu-devel] [PATCH 02/17] object: fix potential leak in getters

2017-05-09 Thread Marc-André Lureau
If the property is not of the requested type, the getters will leak a QObject. Signed-off-by: Marc-André Lureau --- qom/object.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qom/object.c b/qom/object.c index eb4bc924ff..c7b8079df6 100644