X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ffilesys%2Ffile.c;h=a40c07356e2a9de62ea1bc118cb05a8ec0e083fa;hb=f6580e9ad405b519dbe85027691bf3c66074b0a4;hp=8969e179e093ec6c9fd540e995867cfb08ba198f;hpb=41cc2728b06b5e1eeb4cf5a4979692640049e047;p=pintos-anon diff --git a/src/filesys/file.c b/src/filesys/file.c index 8969e17..a40c073 100644 --- a/src/filesys/file.c +++ b/src/filesys/file.c @@ -1,10 +1,10 @@ #include "file.h" -#include "debug.h" -#include "lib.h" -#include "malloc.h" #include "directory.h" #include "filehdr.h" #include "filesys.h" +#include "lib/debug.h" +#include "lib/lib.h" +#include "threads/malloc.h" bool file_open (struct file *file, disk_sector_t hdr_sector) @@ -119,7 +119,6 @@ file_write_at (struct file *file, const void *buffer_, off_t size, file_ofs += chunk_size; bytes_written += chunk_size; } - free (file->bounce); return bytes_written; }