Skip to content

Commit

Permalink
Avoid double-free
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
cmb69 committed Aug 25, 2020
1 parent 0630820 commit 3324bb8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion ext/com_dotnet/com_com.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3324bb8

Please sign in to comment.