]> git.ipfire.org Git - thirdparty/mdadm.git/commit
bitmap: Fix resource leak in bitmap_file_open()
authorJes Sorensen <Jes.Sorensen@redhat.com>
Mon, 7 Mar 2016 18:48:19 +0000 (13:48 -0500)
committerJes Sorensen <Jes.Sorensen@redhat.com>
Wed, 9 Mar 2016 16:35:34 +0000 (11:35 -0500)
commitde12cdc7eb528d76017365a23ff38bd863afddda
treef1d7dd7b7ec4d3e8951e5dd3ad0ad717eaead9e3
parentb91350117398a0d88da738c9d625b6a5dbd4f1ea
bitmap: Fix resource leak in bitmap_file_open()

The code would leak 'fd' if locate_bitmap() failed.

Reviewed-by: NeilBrown <neilb@suse.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
bitmap.c