Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 806638bc authored by Chris Mason's avatar Chris Mason
Browse files

Btrfs: Fix memory leak in cache_drop_leaf_ref



The code wasn't doing a kfree on the sorted array

Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent 9b0d3ace
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -3582,6 +3582,7 @@ static noinline int cache_drop_leaf_ref(struct btrfs_trans_handle *trans,
		info++;
		info++;
	}
	}


	kfree(sorted);
	return 0;
	return 0;
}
}