summaryrefslogtreecommitdiff
path: root/ext/standard/head.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2002-08-09 22:29:58 +0000
committerMarcus Boerger <helly@php.net>2002-08-09 22:29:58 +0000
commit9c8ba935d6cce59d515087b5ce222f22619726f7 (patch)
tree3735e25221dd3866b0026a3761b4d2ca3af2dfff /ext/standard/head.c
parent2e29e53e00d39aa6f5ea1ff4102f792f6ba7ae60 (diff)
downloadphp-git-9c8ba935d6cce59d515087b5ce222f22619726f7.tar.gz
Improved handling of output buffers (see news)\n#No trim for the string parameter...
Diffstat (limited to 'ext/standard/head.c')
-rw-r--r--ext/standard/head.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/standard/head.c b/ext/standard/head.c
index 9279bf2b01..10d33728f4 100644
--- a/ext/standard/head.c
+++ b/ext/standard/head.c
@@ -126,9 +126,7 @@ PHPAPI int php_setcookie(char *name, int name_len, char *value, int value_len, t
ctr.line_len = strlen(cookie);
result = sapi_header_op(SAPI_HEADER_ADD, &ctr TSRMLS_CC);
- if (result == FAILURE) {
- efree(cookie);
- }
+ efree(cookie);
return result;
}