Patched memory leaks (thanks, Valgrind!)
authorRyan C. Gordon <icculus@icculus.org>
Mon, 29 Jul 2002 06:18:58 +0000
changeset 429 72ca216c756a
parent 428 b8349f8c6bac
child 430 5a445b536027
Patched memory leaks (thanks, Valgrind!)
archivers/zip.c
platform/posix.c
--- a/archivers/zip.c	Mon Jul 29 06:18:25 2002 +0000
+++ b/archivers/zip.c	Mon Jul 29 06:18:58 2002 +0000
@@ -399,6 +399,7 @@
         free(finfo->buffer);
 
     free(finfo);
+    free(handle);
     return(1);
 } /* ZIP_fileClose */
 
--- a/platform/posix.c	Mon Jul 29 06:18:25 2002 +0000
+++ b/platform/posix.c	Mon Jul 29 06:18:58 2002 +0000
@@ -471,6 +471,7 @@
 {
     int fd = *((int *) opaque);
     BAIL_IF_MACRO(close(fd) == -1, strerror(errno), 0);
+    free(opaque);
     return(1);
 } /* __PHYSFS_platformClose */