summaryrefslogtreecommitdiff
path: root/ext/standard/head.c
diff options
context:
space:
mode:
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;
}