summaryrefslogtreecommitdiff
path: root/ext/standard/http_fopen_wrapper.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/http_fopen_wrapper.c')
-rw-r--r--ext/standard/http_fopen_wrapper.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ext/standard/http_fopen_wrapper.c b/ext/standard/http_fopen_wrapper.c
index 141ba0fc9c..02b580fa28 100644
--- a/ext/standard/http_fopen_wrapper.c
+++ b/ext/standard/http_fopen_wrapper.c
@@ -614,10 +614,7 @@ finish:
} else {
php_error_docref(NULL, E_WARNING, "Cannot construct User-agent header");
}
-
- if (ua) {
- efree(ua);
- }
+ efree(ua);
}
}