From 4e381d4169fbc31a81ffa7fab267b5a51814d021 Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Wed, 23 Jan 2013 15:07:18 -0800 Subject: btrfs-progs: free path before returning One of the return statements in search_dir() didn't free everything it was supposed to. Signed-off-by: Zach Brown --- restore.c | 1 + 1 file changed, 1 insertion(+) diff --git a/restore.c b/restore.c index b544770b..3ad36268 100644 --- a/restore.c +++ b/restore.c @@ -621,6 +621,7 @@ static int search_dir(struct btrfs_root *root, struct btrfs_key *key, PTR_ERR(search_root)); if (ignore_errors) goto next; + btrfs_free_path(path); return PTR_ERR(search_root); } -- cgit v1.2.3