]> git.proxmox.com Git - mirror_qemu.git/commit - qemu-img.c
qemu-img convert: Free @sn_opts in all error cases
authorTuguoyi <tu.guoyi@h3c.com>
Mon, 2 Nov 2020 09:04:57 +0000 (09:04 +0000)
committerKevin Wolf <kwolf@redhat.com>
Tue, 3 Nov 2020 15:24:56 +0000 (16:24 +0100)
commit6aec830e77a3f80952b41e421dc23c0041c1e399
tree1804af8f2579516acc202853722cfff695992831
parenteada6d9220b77ffee13a86ca8a7aba8fc4451e71
qemu-img convert: Free @sn_opts in all error cases

@sn_opts is initialized at the beginning, so it should be deleted
after jumping to the lable 'fail_getopt'

Signed-off-by: Guoyi Tu <tu.guoyi@h3c.com>
Message-Id: <6ff1c5d372944494be3932274f75485d@h3c.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qemu-img.c