aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2007-12-20 14:30:29 +0800
committervanilla <vanilla@FreeBSD.org>2007-12-20 14:30:29 +0800
commit50ba044e65a9fe3ee6c6b1aba168869134c43017 (patch)
tree4ad9b611efe90426499130346dec9a4a5a2eae59
parent25c25700d33e26862c3b87b964f9ce0c5dd954cc (diff)
downloadfreebsd-ports-gnome-50ba044e65a9fe3ee6c6b1aba168869134c43017.tar.gz
freebsd-ports-gnome-50ba044e65a9fe3ee6c6b1aba168869134c43017.tar.zst
freebsd-ports-gnome-50ba044e65a9fe3ee6c6b1aba168869134c43017.zip
Add a patch to avoid memory leak on php extension.
Approved by: clsung@
-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;
+ }
+