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:
Zach Brown
2017-04-18 13:44:52 -07:00
parent 9e02573e06
commit 48f9be8455
+1 -1
View File
@@ -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);
}
}