Patched memory leaks (thanks, Valgrind!)

This commit is contained in:
Ryan C. Gordon 2002-07-29 06:18:58 +00:00
parent bb7fcf7def
commit d701627335
2 changed files with 2 additions and 0 deletions

View File

@ -399,6 +399,7 @@ static int ZIP_fileClose(FileHandle *handle)
free(finfo->buffer);
free(finfo);
free(handle);
return(1);
} /* ZIP_fileClose */

View File

@ -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 */