diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2015-08-19 01:33:19 +0200 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2015-08-19 01:33:19 +0200 |
commit | 4df77a6c5852a8ba0ccb1a10e01a49c71d1f54b5 (patch) | |
tree | f0ac0f5d7252b3fa80079e96ec679d6adec1b7a0 /ext/standard/head.c | |
parent | 32462a807632922f3f9b1e4c84505901c41a1d7b (diff) | |
download | php-git-4df77a6c5852a8ba0ccb1a10e01a49c71d1f54b5.tar.gz |
Fixed bug #70295 (Segmentation fault with setrawcookie)
Diffstat (limited to 'ext/standard/head.c')
-rw-r--r-- | ext/standard/head.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/head.c b/ext/standard/head.c index 5a53ae2d50..215089b8a1 100644 --- a/ext/standard/head.c +++ b/ext/standard/head.c @@ -141,7 +141,7 @@ PHPAPI int php_setcookie(zend_string *name, zend_string *value, time_t expires, if (!p || *(p + 5) != ' ') { zend_string_free(dt); efree(cookie); - zend_string_free(encoded_value); + zend_string_release(encoded_value); zend_error(E_WARNING, "Expiry date cannot have a year greater than 9999"); return FAILURE; } @@ -155,7 +155,7 @@ PHPAPI int php_setcookie(zend_string *name, zend_string *value, time_t expires, } if (encoded_value) { - zend_string_free(encoded_value); + zend_string_release(encoded_value); } if (path && ZSTR_LEN(path)) { |