cvs: php4 /ext/standard filters.c
| From: | Moriyoshi Koizumi | Date: | Tue, 14 Jan 2003 01:27:57 +0000 |
| Subject: | cvs: php4 /ext/standard filters.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-17875@lists.php.net to get a copy of this message | ||
moriyoshi Mon Jan 13 20:27:57 2003 EDT
Modified files:
/php4/ext/standard filters.c
Log:
Fixed small memory leak that occurs when the invalid line length is passed
to the qprint ctor.
Index: php4/ext/standard/filters.c
diff -u php4/ext/standard/filters.c:1.16 php4/ext/standard/filters.c:1.17
--- php4/ext/standard/filters.c:1.16 Mon Jan 13 20:23:35 2003
+++ php4/ext/standard/filters.c Mon Jan 13 20:27:57 2003
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: filters.c,v 1.16 2003/01/14 01:23:35 moriyoshi Exp $ */
+/* $Id: filters.c,v 1.17 2003/01/14 01:27:57 moriyoshi Exp $ */
#include "php.h"
#include "php_globals.h"
@@ -1264,6 +1264,9 @@
if (read_cd != NULL) {
php_conv_dtor(read_cd);
pefree(read_cd, persistent);
+ }
+ if (inst->filtername != NULL) {
+ pefree(inst->filtername, persistent);
}
return FAILURE;
}