From: kolya Date: Thu, 16 Oct 2008 15:00:23 +0000 (+0000) Subject: free the indirect block X-Git-Url: https://git.devinivas.org/?a=commitdiff_plain;h=e1626709d6bfcf82dc630e3ae15887e05bb3aa47;p=cs3210-lab1.git free the indirect block --- diff --git a/fs.c b/fs.c index 63e3e40..70c7ec1 100644 --- a/fs.c +++ b/fs.c @@ -381,6 +381,7 @@ itrunc(struct inode *ip) bfree(ip->dev, a[j]); } brelse(bp); + bfree(ip->dev, ip->addrs[INDIRECT]); ip->addrs[INDIRECT] = 0; }