Skip to content
Permalink
Browse files
Patched memory leaks (thanks, Valgrind!)
  • Loading branch information
icculus committed Jul 29, 2002
1 parent bb7fcf7 commit d701627335f420c510e45592bc679d76a598d1e3
Showing with 2 additions and 0 deletions.
  1. +1 −0 archivers/zip.c
  2. +1 −0 platform/posix.c
@@ -399,6 +399,7 @@ static int ZIP_fileClose(FileHandle *handle)
free(finfo->buffer);

free(finfo);
free(handle);
return(1);
} /* ZIP_fileClose */

@@ -471,6 +471,7 @@ int __PHYSFS_platformClose(void *opaque)
{
int fd = *((int *) opaque);
BAIL_IF_MACRO(close(fd) == -1, strerror(errno), 0);
free(opaque);
return(1);
} /* __PHYSFS_platformClose */

0 comments on commit d701627

Please sign in to comment.