summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2007-12-20 06:30:29 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2007-12-20 06:30:29 +0000
commit8bf0971371b9957d332f27aeaef8095e6c3215ab (patch)
tree1db3bd80acb0d4671551bdfeff384a6fe54d0299 /textproc
parent- Update to 0.27 (diff)
Add a patch to avoid memory leak on php extension.
Approved by: clsung@
Notes
Notes: svn path=/head/; revision=204170
Diffstat (limited to 'textproc')
-rw-r--r--textproc/libmrss/Makefile2
-rw-r--r--textproc/libmrss/files/patch-php.c19
2 files changed, 20 insertions, 1 deletions
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;
+ }
+