]> granicus.if.org Git - php/commitdiff
Fix memleak in CLI
authorJohannes Schlüter <johannes@php.net>
Wed, 27 Jun 2012 09:42:43 +0000 (11:42 +0200)
committerJohannes Schlüter <johannes@php.net>
Wed, 27 Jun 2012 09:42:43 +0000 (11:42 +0200)
sapi/cli/php_cli.c

index f26db43151bf7ab90e3bbbdb695c27e90a00b977..d63ee1ae840901e59b33b8dbf8daa7fe42586df6 100644 (file)
@@ -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);
        }