BarryServer : Git

All the code for all my projects
// BarryServer : Git / Orion / commit / e59e4fe0bbf5a3f56db0700ee49a81131b590f9c / vfs / file.c

// Related

Orion

Barry Adding pipes e59e4fe (2 years, 4 months ago)
diff --git a/vfs/file.c b/vfs/file.c
index d3dfdc6..33fd0b7 100644
--- a/vfs/file.c
+++ b/vfs/file.c
@@ -30,6 +30,8 @@ file_put(File *file)
 	ASSERT(file->usage);
 	if (--file->usage)
 		return;
+	if (file->ops && file->ops->release)
+		file->ops->release(file);
 	if (file->inode)
 		inode_put(file->inode);
 	if (file->path)