From: Ben Pfaff Date: Tue, 8 Feb 2005 18:27:26 +0000 (+0000) Subject: Free file in file_close(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4e88f1eb0c51304635bceeee490df8a928fc908;p=pintos-anon Free file in file_close(). --- diff --git a/src/filesys/file.c b/src/filesys/file.c index 27e907f..e8818c0 100644 --- a/src/filesys/file.c +++ b/src/filesys/file.c @@ -45,6 +45,7 @@ file_close (struct file *file) inode_close (file->inode); free (file->bounce); + free (file); } /* Reads SIZE bytes from FILE into BUFFER,