summaryrefslogtreecommitdiff
path: root/ext/com_dotnet
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2011-11-18 07:11:19 +0000
committerStanislav Malyshev <stas@php.net>2011-11-18 07:11:19 +0000
commit77d0643b68f9f9405131e583f549d15240bfa358 (patch)
tree805a2f936502be820c918c18b41d1ec13770b958 /ext/com_dotnet
parentced34c975ecb60f32ec0b48b78a5b22acc05b52e (diff)
downloadphp-git-77d0643b68f9f9405131e583f549d15240bfa358.tar.gz
fixes for bug #55748
Diffstat (limited to 'ext/com_dotnet')
-rw-r--r--ext/com_dotnet/com_typeinfo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/com_dotnet/com_typeinfo.c b/ext/com_dotnet/com_typeinfo.c
index e2d5d28af5..2934c05933 100644
--- a/ext/com_dotnet/com_typeinfo.c
+++ b/ext/com_dotnet/com_typeinfo.c
@@ -187,6 +187,10 @@ PHPAPI int php_com_import_typelib(ITypeLib *TL, int mode, int codepage TSRMLS_DC
const_name = php_com_olestring_to_string(bstr_ids, &c.name_len, codepage TSRMLS_CC);
c.name = zend_strndup(const_name, c.name_len);
efree(const_name);
+ if(c.name == NULL) {
+ ITypeInfo_ReleaseVarDesc(TypeInfo, pVarDesc);
+ continue;
+ }
c.name_len++; /* include NUL */
SysFreeString(bstr_ids);