aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorStefan Behrens <[email protected]>2013-05-08 08:56:09 +0000
committerJosef Bacik <[email protected]>2013-05-17 21:40:19 -0400
commit379cde741b220091d2124fb500b178b90ad7f460 (patch)
tree0f6426bbd7572c279ca365718c1e6da092a42445 /lib/memory-notifier-error-inject.c
parentc16c2e2e51c2f0951fffa73c343b8fcb641108ba (diff)
Btrfs: fix possible memory leak in replace_path()
In replace_path(), if read_tree_block() fails, we cannot return directly, we should free some allocated memory otherwise memory leak happens. Similar to Wang's "Btrfs: fix possible memory leak in the find_parent_nodes()" patch, the current commit fixes an issue that is related to the "Btrfs: fix all callers of read_tree_block" commit. Signed-off-by: Stefan Behrens <[email protected]> Signed-off-by: Josef Bacik <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions