free the indirect block
This commit is contained in:
parent
e670a48358
commit
e1626709d6
1 changed files with 1 additions and 0 deletions
1
fs.c
1
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue