From 50ba044e65a9fe3ee6c6b1aba168869134c43017 Mon Sep 17 00:00:00 2001 From: vanilla Date: Thu, 20 Dec 2007 06:30:29 +0000 Subject: Add a patch to avoid memory leak on php extension. Approved by: clsung@ --- textproc/libmrss/Makefile | 2 +- textproc/libmrss/files/patch-php.c | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 textproc/libmrss/files/patch-php.c (limited to 'textproc') diff --git a/textproc/libmrss/Makefile b/textproc/libmrss/Makefile index 12073ea858e0..a78e43b3a438 100644 --- a/textproc/libmrss/Makefile +++ b/textproc/libmrss/Makefile @@ -7,7 +7,7 @@ PORTNAME= libmrss PORTVERSION= 0.18.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= textproc MASTER_SITES= http://www5.autistici.org/bakunin/libmrss/ GENTOO/distfiles diff --git a/textproc/libmrss/files/patch-php.c b/textproc/libmrss/files/patch-php.c new file mode 100644 index 000000000000..49b1a181c12e --- /dev/null +++ b/textproc/libmrss/files/patch-php.c @@ -0,0 +1,19 @@ +--- 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; + } + -- cgit