summaryrefslogtreecommitdiff
path: root/volumes.c
diff options
context:
space:
mode:
authorZach Brown <zab@redhat.com>2013-01-22 15:52:17 -0800
committerZach Brown <zab@redhat.com>2013-02-05 16:09:39 -0800
commit506fb87fe48f38e2999b6265fcc54456ea81c7b1 (patch)
treea9d0ad5c31489819f394cb69ebcca0637a696c31 /volumes.c
parentaaf682ac2e6f0126305a149bccb4b5798fd6ffe4 (diff)
btrfs-progs: free path on read_chunk_tree error
Path allocation failure already has its own return, remember to free the path when the error label is taken. Signed-off-by: Zach Brown <zab@redhat.com>
Diffstat (limited to 'volumes.c')
-rw-r--r--volumes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/volumes.c b/volumes.c
index 65986e15..e470bd17 100644
--- a/volumes.c
+++ b/volumes.c
@@ -1601,9 +1601,9 @@ again:
goto again;
}
- btrfs_free_path(path);
ret = 0;
error:
+ btrfs_free_path(path);
return ret;
}