commit | 9ca2e97fa3c3216200afe35a3b111ec51cc796d2 | [log] [tgz] |
---|---|---|
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | Sun Sep 10 13:19:38 2017 +0200 |
committer | David Sterba <dsterba@suse.com> | Mon Oct 30 12:27:56 2017 +0100 |
tree | bef9d02206c63f93b4b77cfa140864e97cea4888 | |
parent | c434d21c6442b107af7030be2d716cf6c89c5606 [diff] |
btrfs: tests: Fix a memory leak in error handling path in 'run_test()' If 'btrfs_alloc_path()' fails, we must free the resources already allocated, as done in the other error handling paths in this function. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Reviewed-by: Qu Wenruo <quwenruo.btrfs@gmx.com> Signed-off-by: David Sterba <dsterba@suse.com>