summaryrefslogtreecommitdiff
path: root/restore.c
diff options
context:
space:
mode:
Diffstat (limited to 'restore.c')
-rw-r--r--restore.c1
1 files changed, 1 insertions, 0 deletions
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);
}