Commit:    bc0972e78daec4d7b7adccb7116f8ded2ca5044d
Author:    Johannes Schlüter <johan...@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);
        }


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to