[Tux3] [PATCH] don't leak memory in iattrtest

Benjamin K. Stuhl benjamin.stuhl at colorado.edu
Tue Sep 9 10:51:54 PDT 2008


diff -r de15ed7b3c0c user/test/iattr.c
--- a/user/test/iattr.c	Tue Sep 09 02:14:13 2008 -0700
+++ b/user/test/iattr.c	Tue Sep 09 11:45:51 2008 -0600
@@ -358,6 +358,7 @@
 	assert(top == newtop);
 	warn("xsize = %x\n", inode->xcache->size);
 	xcache_dump(inode);
+	free(inode->xcache);
 return 0;

 	printf("%i attributes starting from %i\n", MAX_ATTRS - MIN_ATTR, MIN_ATTR);




_______________________________________________
Tux3 mailing list
Tux3 at tux3.org
http://tux3.org/cgi-bin/mailman/listinfo/tux3



More information about the Tux3 mailing list