]> granicus.if.org Git - php/commitdiff
Fix bindpath mem leak in cgi
authorDavid Carlier <devnexen@gmail.com>
Sun, 21 Jul 2019 13:48:46 +0000 (14:48 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Wed, 24 Jul 2019 10:06:40 +0000 (12:06 +0200)
Closes GH-4451.

sapi/cgi/cgi_main.c

index 81de65351fa71740e8e17b27c9ada805630ddfc8..c885f306774d9b7881ed72a9431e078750c2ba19 100644 (file)
@@ -1957,6 +1957,7 @@ consult the installation file that came with this distribution, or visit \n\
                         */
                        tsrm_shutdown();
 #endif
+                       free(bindpath);
                        return FAILURE;
                }
        }