Skip to content

Commit

Permalink
Patched memory leaks (thanks, Valgrind!)
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jul 29, 2002
1 parent bb7fcf7 commit d701627
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions archivers/zip.c
Expand Up @@ -399,6 +399,7 @@ static int ZIP_fileClose(FileHandle *handle)
free(finfo->buffer);

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

Expand Down
1 change: 1 addition & 0 deletions platform/posix.c
Expand Up @@ -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 */

Expand Down

0 comments on commit d701627

Please sign in to comment.