VMDK: fix leak of extent_file
authorFam Zheng <famcool@gmail.com>
Mon, 19 Sep 2011 02:26:42 +0000 (10:26 +0800)
committerKevin Wolf <kwolf@redhat.com>
Tue, 20 Sep 2011 10:27:43 +0000 (12:27 +0200)
commitb3c0bfb6f949d8f1c97f390f951c0bab3e703810
tree74cf07182169308d3a59c84ec1fd5baed32cc50a
parent7285477ab11831b1cf56e45878a89170dd06d9b9
VMDK: fix leak of extent_file

Release extent_file on error in vmdk_parse_extents. Added closing files
in freeing extents.

Signed-off-by: Fam Zheng <famcool@gmail.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vmdk.c