OSDN Git Service

tests: test-qmp-commands: Fix double free
authorLuiz Capitulino <lcapitulino@redhat.com>
Sat, 8 Mar 2014 17:20:06 +0000 (12:20 -0500)
committerLuiz Capitulino <lcapitulino@redhat.com>
Tue, 11 Mar 2014 13:07:42 +0000 (09:07 -0400)
commit2a7a1a56d1e30de07cf7d7636a35bf7706b9500e
tree39e8132d10ca83ee51fb1e00936ee103d37593a0
parent5d371f41b4db8e47c89626ecf9d9914119583e23
tests: test-qmp-commands: Fix double free

The ret variable is freed twice, but on the second time we actually want
to free ret3 instead. Don't know why this didn't explode.

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Tested-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
tests/test-qmp-commands.c