diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2017-09-10 13:19:38 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-12-20 10:07:31 +0100 |
commit | 7fab68e1f7308b2b7e3ebdd2483eb7a9572ccec5 (patch) | |
tree | e3093fa70f234844d69cffaa22fc09c5b19b125f /fs/btrfs/check-integrity.h | |
parent | b7ada2c0ea291e7bf22b51745afd9f1ccfc91292 (diff) |
btrfs: tests: Fix a memory leak in error handling path in 'run_test()'
[ Upstream commit 9ca2e97fa3c3216200afe35a3b111ec51cc796d2 ]
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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/btrfs/check-integrity.h')
0 files changed, 0 insertions, 0 deletions