From 506fb87fe48f38e2999b6265fcc54456ea81c7b1 Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Tue, 22 Jan 2013 15:52:17 -0800 Subject: 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 --- volumes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'volumes.c') 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; } -- cgit v1.2.3