mirror of
https://github.com/versity/scoutfs.git
synced 2025-12-23 13:35:18 +00:00
Free key and value in the right order!
Always key then value! *twitch* Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
@@ -285,8 +285,8 @@ int scoutfs_item_next_same_min(struct super_block *sb, struct kvec *key,
|
||||
static void free_item(struct cached_item *item)
|
||||
{
|
||||
if (!IS_ERR_OR_NULL(item)) {
|
||||
scoutfs_kvec_kfree(item->val);
|
||||
scoutfs_kvec_kfree(item->key);
|
||||
scoutfs_kvec_kfree(item->val);
|
||||
kfree(item);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user