Skip to content

Commit 835d2b4

Browse files
committed
free ctx
1 parent 5da0ed2 commit 835d2b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swoole_http_response.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ static PHP_METHOD(swoole_http_response, end)
591591
#endif
592592
{
593593
swoole_http_response_end(ctx, zdata, return_value);
594-
if (!ctx->end)
594+
if (!ctx->upgrade)
595595
{
596596
swoole_http_context_free(ctx);
597597
}

0 commit comments

Comments
 (0)