]> granicus.if.org Git - php/commitdiff
Avoid double-free
authorChristoph M. Becker <cmbecker69@gmx.de>
Tue, 25 Aug 2020 11:07:29 +0000 (13:07 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Tue, 25 Aug 2020 11:11:22 +0000 (13:11 +0200)
As of commit b2e3fd1[1] the `authid.User` is no longer newly allocated,
so we must not free it.

[1] <http://git.php.net/?p=php-src.git;a=commit;h=b2e3fd1e691b1dc82aaaf4150461db97bd5acf4a>

ext/com_dotnet/com_com.c

index af72db63b188cd2d290829497cd71f398c4c2305..c9962835d14c78c46d6d1c88d26b77e050dfddeb 100644 (file)
@@ -221,7 +221,6 @@ PHP_FUNCTION(com_create_instance)
 
        if (server_name) {
                if (info.pwszName) efree(info.pwszName);
-               if (authid.User) efree(authid.User);
        }
 
        efree(moniker);