btrfs: tests: don't leak fs_info in extent_io bitmap tests
authorDavid Sterba <dsterba@suse.com>
Fri, 15 Mar 2019 15:46:55 +0000 (16:46 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 29 Apr 2019 17:02:25 +0000 (19:02 +0200)
commitd33d105b85d6099e2499c536fb6fbb2dc65ea644
tree064260fa5dc628d5de286da27d2833754d3c0dfb
parentd46a05edac440168a31805e583c8ab3f9c9561f9
btrfs: tests: don't leak fs_info in extent_io bitmap tests

The fs_info is not freed at the end of the function and leaks. The
function is called twice so there can be up to 2x sizeof(struct
btrfs_fs_info) of leaked memory.  Fortunatelly this affects only testing
builds, the size could be 16k with several debugging features enabled.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tests/extent-io-tests.c