Bug fixes from the Valgrind oracle.
This commit is contained in:
parent
ceb0477083
commit
e95a70884b
3 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue