[Ocfs2-tools-commits] taoma commits r1347 - branches/sparse-files/extras

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Sat Apr 28 22:28:14 PDT 2007


Author: taoma
Date: 2007-04-28 22:28:11 -0700 (Sat, 28 Apr 2007)
New Revision: 1347

Modified:
   branches/sparse-files/extras/sparse.c
Log:
Fix a memeory leak for not freeing cached inode.

Modified: branches/sparse-files/extras/sparse.c
===================================================================
--- branches/sparse-files/extras/sparse.c	2007-04-24 22:57:14 UTC (rev 1346)
+++ branches/sparse-files/extras/sparse.c	2007-04-29 05:28:11 UTC (rev 1347)
@@ -208,6 +208,8 @@
 
 	output(buf, read_bytes);
 bail:
+	if (ci)
+		ocfs2_free_cached_inode(fs, ci);
 	if (buf)
 		ocfs2_free(&buf);
 	return ret;




More information about the Ocfs2-tools-commits mailing list