platform/posix.c
changeset 429 72ca216c756a
parent 362 ac8c846a0a66
child 467 99664d9842cb
equal deleted inserted replaced
428:b8349f8c6bac 429:72ca216c756a
   469 
   469 
   470 int __PHYSFS_platformClose(void *opaque)
   470 int __PHYSFS_platformClose(void *opaque)
   471 {
   471 {
   472     int fd = *((int *) opaque);
   472     int fd = *((int *) opaque);
   473     BAIL_IF_MACRO(close(fd) == -1, strerror(errno), 0);
   473     BAIL_IF_MACRO(close(fd) == -1, strerror(errno), 0);
       
   474     free(opaque);
   474     return(1);
   475     return(1);
   475 } /* __PHYSFS_platformClose */
   476 } /* __PHYSFS_platformClose */
   476 
   477 
   477 
   478 
   478 int __PHYSFS_platformDelete(const char *path)
   479 int __PHYSFS_platformDelete(const char *path)