diff options
author | Max Reitz <mreitz@redhat.com> | 2014-08-20 19:59:33 +0200 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2014-09-22 11:39:32 +0100 |
commit | 7b17ce60cc58b3c20b3e708a2d69f6bbe2b4edfa (patch) | |
tree | a83325c07823caa9a7efb2cc6763c95c84f2bf13 /stubs/vmstate.c | |
parent | 93bb1315250dd010e65dc067af103cbaf0de03ae (diff) |
qcow2: Fix leak of QemuOpts in qcow2_open()
Currently, the QemuOpts object opts is leaked if anything fails from its
creation up to and including the image repair block. Fix this by freeing
that object in the fail path.
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: BenoƮt Canet <benoit.canet@nodalink.com>
Message-id: 1408557576-14574-2-git-send-email-mreitz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'stubs/vmstate.c')
0 files changed, 0 insertions, 0 deletions