]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf3dd2758155b90a6a3fbc40d5f1061ac7d317707
tree064260fa5dc628d5de286da27d2833754d3c0dfb
parentd050fe1e10ac81aba5157ec3dc53b6df384cbe01
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