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>
master
Zach Brown 2013-01-22 15:52:17 -08:00
parent aaf682ac2e
commit 506fb87fe4
1 changed files with 1 additions and 1 deletions

View File

@ -1601,9 +1601,9 @@ again:
goto again;
}
btrfs_free_path(path);
ret = 0;
error:
btrfs_free_path(path);
return ret;
}