qemu-img: Fix options leakage in img_rebase()
commitf22356d95524347ff255ae58a96f0f7052018d4e
authorMax Reitz <mreitz@redhat.com>
Tue, 28 May 2019 19:53:38 +0000 (28 21:53 +0200)
committerMax Reitz <mreitz@redhat.com>
Fri, 14 Jun 2019 12:16:57 +0000 (14 14:16 +0200)
treee984ebc9f1ee4c84ca6a22489a6b9bc08d9f72fb
parent549fb88045253cb246f900a9db447800313865c4
qemu-img: Fix options leakage in img_rebase()

img_rebase() can leak a QDict in two occasions.  Fix it.

Coverity: CID 1401416
Fixes: d16699b64671466b42079c45b89127aeea1ca565
Fixes: 330c72957196e0ae382abcaa97ebf4eb9bc8574f
Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-id: 20190528195338.12376-1-mreitz@redhat.com
Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
qemu-img.c