| commit | 52e34db194b46210035a263d96e19da107a5281a | [log] [tgz] |
|---|---|---|
| author | Russ Cox <rsc@swtch.com> | Sat Dec 06 14:45:57 2008 -0800 |
| committer | Russ Cox <rsc@swtch.com> | Sat Dec 06 14:45:57 2008 -0800 |
| tree | bd43fa7779a8688c2f7a7885024c65278d6b2cd0 | |
| parent | b5a2d4dae76817f8e206d32302206a8a7ababc46 [diff] |
vac: error handling bug in vacfileblockscore (David Swasey)
diff --git a/src/cmd/vac/file.c b/src/cmd/vac/file.c index d7ad205..598dae0 100644 --- a/src/cmd/vac/file.c +++ b/src/cmd/vac/file.c
@@ -598,11 +598,12 @@ dsize = s->dsize; size = vtfilegetsize(s); if((uvlong)bn*dsize >= size) - goto out; + goto out1; ret = vtfileblockscore(f->source, bn, score); -out: +out1: vtfileunlock(f->source); +out: filerunlock(f); return ret; }