Ticket #486: mg_mleak.patch

File mg_mleak.patch, 400 bytes (added by pini, 11 years ago)
  • navit/file.c

    diff --git a/navit/file.c b/navit/file.c
    index bee93b7..f02c017 100644
    a b int file_mkdir(char *name, int pflag) 
    145145int
    146146file_mmap(struct file *file)
    147147{
    148         int mmap_size=file->size+1024*1024;
     148        int mmap_size=file->size;
    149149#ifdef HAVE_API_WIN32_BASE
    150150        file->begin = (char*)mmap_readonly_win32( file->name, &file->map_handle, &file->map_file );
    151151#else