projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b3f63b
)
btrfs-progs: free path before returning
author
Zach Brown
<zab@redhat.com>
Wed, 23 Jan 2013 23:07:18 +0000
(15:07 -0800)
committer
Zach Brown
<zab@redhat.com>
Wed, 6 Feb 2013 00:09:40 +0000
(16:09 -0800)
One of the return statements in search_dir() didn't free everything it
was supposed to.
Signed-off-by: Zach Brown <zab@redhat.com>
restore.c
patch
|
blob
|
history
diff --git
a/restore.c
b/restore.c
index
b544770
..
3ad3626
100644
(file)
--- 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);
}