Bug fixes from the Valgrind oracle.

This commit is contained in:
rsc 2003-12-09 06:37:26 +00:00
parent ceb0477083
commit e95a70884b
3 changed files with 4 additions and 1 deletions

View file

@ -199,7 +199,7 @@ _fsgetfid(Fsys *fs)
qlock(&fs->lk);
if(fs->freefid == nil){
f = malloc(sizeof(Fid)*Fidchunk);
f = mallocz(sizeof(Fid)*Fidchunk, 1);
if(f == nil){
qunlock(&fs->lk);
return nil;