free the indirect block

This commit is contained in:
kolya 2008-10-16 15:00:23 +00:00
parent e670a48358
commit e1626709d6

1
fs.c
View file

@ -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;
}