diff options
author | kolya <kolya> | 2008-10-16 15:00:23 +0000 |
---|---|---|
committer | kolya <kolya> | 2008-10-16 15:00:23 +0000 |
commit | e1626709d6bfcf82dc630e3ae15887e05bb3aa47 (patch) | |
tree | 4fb54f6fdc250bbb2a50c129f7e06ada70b944ff /fs.c | |
parent | e670a4835858b48e1568742dbe939800e2d44c13 (diff) | |
download | xv6-labs-e1626709d6bfcf82dc630e3ae15887e05bb3aa47.tar.gz xv6-labs-e1626709d6bfcf82dc630e3ae15887e05bb3aa47.tar.bz2 xv6-labs-e1626709d6bfcf82dc630e3ae15887e05bb3aa47.zip |
free the indirect block
Diffstat (limited to 'fs.c')
-rw-r--r-- | fs.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; } |