summaryrefslogtreecommitdiff
path: root/ext/com_dotnet
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2019-06-29 14:47:06 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2019-06-29 14:51:13 +0200
commit8357a696ab0b7aba4e3e147f48544c103ef9bf83 (patch)
treef0c400a8cf54f15051159bd2d4e844a54f2a7187 /ext/com_dotnet
parent885cb79201130fc8a3f686a641d6a6be531f3219 (diff)
downloadphp-git-8357a696ab0b7aba4e3e147f48544c103ef9bf83.tar.gz
Fix memory leak in COM ctor
We have to free strings returned from php_com_olestring_to_string().
Diffstat (limited to 'ext/com_dotnet')
-rw-r--r--ext/com_dotnet/com_com.c2
1 files changed, 1 insertions, 1 deletions
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);