From e1626709d6bfcf82dc630e3ae15887e05bb3aa47 Mon Sep 17 00:00:00 2001
From: kolya <kolya>
Date: Thu, 16 Oct 2008 15:00:23 +0000
Subject: [PATCH] free the indirect block

---
 fs.c | 1 +
 1 file changed, 1 insertion(+)

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