Skip to content

Commit a8dddad

Browse files
committed
Close file_handle in fpm_main
1 parent b09be29 commit a8dddad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sapi/fpm/fpm/fpm_main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1908,6 +1908,8 @@ consult the installation file that came with this distribution, or visit \n\
19081908
* so cleanup and continue, request shutdown is
19091909
* handled later */
19101910

1911+
zend_destroy_file_handle(&file_handle);
1912+
19111913
goto fastcgi_request_done;
19121914
}
19131915

@@ -1918,6 +1920,8 @@ consult the installation file that came with this distribution, or visit \n\
19181920

19191921
php_execute_script(&file_handle);
19201922

1923+
zend_destroy_file_handle(&file_handle);
1924+
19211925
fastcgi_request_done:
19221926
if (EXPECTED(primary_script)) {
19231927
efree(primary_script);

0 commit comments

Comments
 (0)