From 8357a696ab0b7aba4e3e147f48544c103ef9bf83 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Sat, 29 Jun 2019 14:47:06 +0200 Subject: [PATCH] Fix memory leak in COM ctor We have to free strings returned from php_com_olestring_to_string(). --- ext/com_dotnet/com_com.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.50.1