summaryrefslogtreecommitdiff
path: root/sapi
diff options
context:
space:
mode:
authorJohannes Schlüter <johannes@php.net>2012-06-27 11:42:43 +0200
committerJohannes Schlüter <johannes@php.net>2012-06-27 11:42:43 +0200
commitbc0972e78daec4d7b7adccb7116f8ded2ca5044d (patch)
treed818354f69baa3ad39c77f5ff8aaa767510d18eb /sapi
parentad2bee193d9850cac9e214e9293f4dc3cd77d857 (diff)
downloadphp-git-bc0972e78daec4d7b7adccb7116f8ded2ca5044d.tar.gz
Fix memleak in CLI
Diffstat (limited to 'sapi')
-rw-r--r--sapi/cli/php_cli.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c
index f26db43151..d63ee1ae84 100644
--- a/sapi/cli/php_cli.c
+++ b/sapi/cli/php_cli.c
@@ -1367,6 +1367,9 @@ out:
if (request_started) {
php_request_shutdown((void *) 0);
}
+ if (translated_path) {
+ free(translated_path);
+ }
if (exit_status == 0) {
exit_status = EG(exit_status);
}