Files
ports/textproc/libmrss/files/patch-php.c
T
Vanilla I. Shu 8bf0971371 Add a patch to avoid memory leak on php extension.
Approved by:	clsung@
2007-12-20 06:30:29 +00:00

20 lines
457 B
C

--- phpmrss/php.c.orig 2007-12-20 14:28:23.072883854 +0800
+++ phpmrss/php.c 2007-12-20 14:28:48.234880979 +0800
@@ -450,16 +450,6 @@
MAKE_STD_ZVAL(item);
if (array_init(item) == FAILURE) {
FREE_ZVAL(item);
-
- add_index_zval(category, i++, category_zval);
- c=c->next;
- }
-
- add_assoc_zval(return_value,"category", category);
-
- MAKE_STD_ZVAL(item);
- if (array_init(item) == FAILURE) {
- FREE_ZVAL(item);
return;
}