]> git.proxmox.com Git - qemu.git/commit - block.c
block: Fix bdrv_open use after free
authorKevin Wolf <kwolf@redhat.com>
Wed, 26 Oct 2011 09:03:01 +0000 (11:03 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 28 Oct 2011 17:25:49 +0000 (19:25 +0200)
commit2b5728164fcf5211bbae8d3c2fc6df62dd6b2295
tree3d576758db3300e4519aa41a524ccd26b1ae1799
parent3574c608195c10f4ac48bb6a27d1c5e2c5f9ac3a
block: Fix bdrv_open use after free

tmp_filename was used outside the block it was defined in, i.e. after it went
out of scope. Move its declaration to the top level.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c