free the indirect block

feat/start
kolya 2008-10-16 15:00:23 +00:00
parent e670a48358
commit e1626709d6
1 changed files with 1 additions and 0 deletions

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