summaryrefslogtreecommitdiff
path: root/mail/php5-imap
diff options
context:
space:
mode:
authorAlex Dupre <ale@FreeBSD.org>2008-12-30 10:12:32 +0000
committerAlex Dupre <ale@FreeBSD.org>2008-12-30 10:12:32 +0000
commit5d09953c9e81e527cc492a3ca17fcb7fe4e73505 (patch)
tree79dde6107c5752e495d6c56b701712a279c140f8 /mail/php5-imap
parent- Update to 5.9.3. (diff)
Fix a small memory leak.
Notes
Notes: svn path=/head/; revision=224984
Diffstat (limited to 'mail/php5-imap')
-rw-r--r--mail/php5-imap/files/patch-php_imap.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/mail/php5-imap/files/patch-php_imap.c b/mail/php5-imap/files/patch-php_imap.c
new file mode 100644
index 000000000000..23ce39d82b1c
--- /dev/null
+++ b/mail/php5-imap/files/patch-php_imap.c
@@ -0,0 +1,11 @@
+--- php_imap.c.orig 2008-12-30 11:06:18.000000000 +0100
++++ php_imap.c 2008-12-30 11:06:56.000000000 +0100
+@@ -2172,7 +2172,7 @@
+
+ /* rfc822_parse_adrlist() modifies passed string. Copy it. */
+ str_copy = estrndup(Z_STRVAL_PP(str), Z_STRLEN_PP(str));
+- rfc822_parse_adrlist(&env->to, str_copy, defaulthost);
++ rfc822_parse_adrlist(&env->to, str_copy, Z_STRVAL_PP(defaulthost));
+ efree(str_copy);
+
+ array_init(return_value);