Skip to content

Commit

Permalink
Fix memory leak and optimize code
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFreeman committed Aug 30, 2023
1 parent 6ecf390 commit 278285a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion ext-src/php_swoole_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,6 @@ void php_swoole_process_rshutdown();
void php_swoole_coroutine_scheduler_rshutdown();
void php_swoole_runtime_rshutdown();
void php_swoole_server_rshutdown();
void php_swoole_process_rshutdown();

int php_swoole_reactor_init();
void php_swoole_set_global_option(zend_array *vht);
Expand Down
2 changes: 1 addition & 1 deletion ext-src/swoole_http_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ void php_swoole_http_server_rinit() {
}

void php_swoole_http_server_rshutdown() {
if (!SG(rfc1867_uploaded_files)) {
if (SG(rfc1867_uploaded_files)) {
destroy_uploaded_files_hash();
SG(rfc1867_uploaded_files) = nullptr;
}
Expand Down

0 comments on commit 278285a

Please sign in to comment.