Skip to content

Commit bc0972e

Browse files
committed
Fix memleak in CLI
1 parent ad2bee1 commit bc0972e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sapi/cli/php_cli.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1367,6 +1367,9 @@ int main(int argc, char *argv[])
13671367
if (request_started) {
13681368
php_request_shutdown((void *) 0);
13691369
}
1370+
if (translated_path) {
1371+
free(translated_path);
1372+
}
13701373
if (exit_status == 0) {
13711374
exit_status = EG(exit_status);
13721375
}

0 commit comments

Comments
 (0)