From: Christoph M. Becker Date: Sat, 29 Jun 2019 12:47:06 +0000 (+0200) Subject: Fix memory leak in COM ctor X-Git-Tag: php-7.4.0alpha3~122 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8357a696ab0b7aba4e3e147f48544c103ef9bf83;p=php Fix memory leak in COM ctor We have to free strings returned from php_com_olestring_to_string(). --- diff --git a/ext/com_dotnet/com_com.c b/ext/com_dotnet/com_com.c index 6619cb4b44..fc8e84b3a1 100644 --- a/ext/com_dotnet/com_com.c +++ b/ext/com_dotnet/com_com.c @@ -273,7 +273,7 @@ PHP_FUNCTION(com_create_instance) /* add a reference for the hash */ ITypeLib_AddRef(TL); } - + efree(typelib_name); } else { /* try it anyway */ php_com_import_typelib(TL, mode, obj->code_page);