aboutsummaryrefslogtreecommitdiff
path: root/src/libfs
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2003-12-09 06:37:26 +0000
committerrsc <devnull@localhost>2003-12-09 06:37:26 +0000
commite95a70884b2eb361e0e879a91e5b46aea4e1d633 (patch)
treee55b66f6f86f9f49735b35dbc6578f6768dd0f8b /src/libfs
parentceb04770830a7610a5a9a21aa96a4ba4cece2a5d (diff)
downloadplan9port-e95a70884b2eb361e0e879a91e5b46aea4e1d633.tar.gz
plan9port-e95a70884b2eb361e0e879a91e5b46aea4e1d633.tar.bz2
plan9port-e95a70884b2eb361e0e879a91e5b46aea4e1d633.zip
Bug fixes from the Valgrind oracle.
Diffstat (limited to 'src/libfs')
-rw-r--r--src/libfs/fs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libfs/fs.c b/src/libfs/fs.c
index c06e19d8..b34df340 100644
--- a/src/libfs/fs.c
+++ b/src/libfs/fs.c
@@ -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;