qemu-ga: Plug memory leak in guest_fsfreeze_cleanup()
authorMarkus Armbruster <armbru@redhat.com>
Wed, 16 Jan 2013 17:15:08 +0000 (18:15 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 28 Jan 2013 19:46:18 +0000 (13:46 -0600)
commit6f6867493cc00974de594a509cee5a3be61c64aa
tree8bebccd22d7c43bc3b1f3b4c94166274808901fc
parent6034fe7bdb555c43022706e228cde8d52a8b341a
qemu-ga: Plug memory leak in guest_fsfreeze_cleanup()

Neglects to free errors allocated by qmp_guest_fsfreeze_thaw().
Spotted by Coverity.

While there, drop the test whether return value is negative (it's
never true), and improve logging.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qga/commands-posix.c