diff options
author | Zach Brown <zab@redhat.com> | 2013-01-23 15:07:18 -0800 |
---|---|---|
committer | Zach Brown <zab@redhat.com> | 2013-02-05 16:09:40 -0800 |
commit | 4e381d4169fbc31a81ffa7fab267b5a51814d021 (patch) | |
tree | b97ec8ec2e9bac257c2531a86144865c2074de13 | |
parent | 7b3f63be2c3c821ffbea83dead0cbac969ae388e (diff) |
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 <zab@redhat.com>
-rw-r--r-- | restore.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); } |