Skip to content

Commit 3324bb8

Browse files
committed
Avoid double-free
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>
1 parent 0630820 commit 3324bb8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

ext/com_dotnet/com_com.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ PHP_FUNCTION(com_create_instance)
221221

222222
if (server_name) {
223223
if (info.pwszName) efree(info.pwszName);
224-
if (authid.User) efree(authid.User);
225224
}
226225

227226
efree(moniker);

0 commit comments

Comments
 (0)