cvs: php4 /ext/exif exif.c
| From: | Jani Taskinen | Date: | Sat, 04 Aug 2001 03:06:13 +0000 |
| Subject: | cvs: php4 /ext/exif exif.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-6532@lists.php.net to get a copy of this message | ||
sniper Fri Aug 3 23:06:13 2001 EDT
Modified files:
/php4/ext/exif exif.c
Log:
fixed a memleak.
Index: php4/ext/exif/exif.c
diff -u php4/ext/exif/exif.c:1.24 php4/ext/exif/exif.c:1.25
--- php4/ext/exif/exif.c:1.24 Fri Aug 3 21:56:40 2001
+++ php4/ext/exif/exif.c Fri Aug 3 23:06:12 2001
@@ -934,7 +934,7 @@
fseek(infile, cp, SEEK_SET);
size = ep-cp;
- Data = (uchar *)malloc(size);
+ Data = (uchar *)emalloc(size);
if (Data == NULL) {
php_error(E_WARNING,"could not allocate data for entire image");
return FALSE;
@@ -953,6 +953,7 @@
/*
*HaveAll = 1;
*/
+ efree(Data);
}
return TRUE;