com php-src: Fix memleak in CLI: sapi/cli/php_cli.c
| From: | Johannes Schlüter | Date: | Wed, 27 Jun 2012 09:42:43 +0000 |
| Subject: | com php-src: Fix memleak in CLI: sapi/cli/php_cli.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-69472@lists.php.net to get a copy of this message | ||
Commit: bc0972e78daec4d7b7adccb7116f8ded2ca5044d
Author: Johannes Schlüter <johannes@php.net> Wed, 27 Jun 2012 11:42:43 +0200
Parents: ad2bee193d9850cac9e214e9293f4dc3cd77d857
Branches: PHP-5.3 PHP-5.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=bc0972e78daec4d7b7adccb7116f8ded2ca5044d
Log:
Fix memleak in CLI
Changed paths:
M sapi/cli/php_cli.c
Diff:
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c
index f26db43..d63ee1a 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);
}