summaryrefslogtreecommitdiff
path: root/ext/com_dotnet/com_handlers.c
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2003-10-13 01:29:39 +0000
committerWez Furlong <wez@php.net>2003-10-13 01:29:39 +0000
commitf27387c68cd1533c1aa2114208ae9a2ed5172be5 (patch)
tree1e27803c1e931c063093613d97c4a93dfc186f9a /ext/com_dotnet/com_handlers.c
parent7ca3d7cf7cc8b012aa56eed9c5e318fe899f5814 (diff)
downloadphp-git-f27387c68cd1533c1aa2114208ae9a2ed5172be5.tar.gz
Fix possible segfault (this one came up when a method could not be found).
Add a couple of headers used by another file that is not yet ready to commit.
Diffstat (limited to 'ext/com_dotnet/com_handlers.c')
-rw-r--r--ext/com_dotnet/com_handlers.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/com_dotnet/com_handlers.c b/ext/com_dotnet/com_handlers.c
index 7a51777023..72537c9943 100644
--- a/ext/com_dotnet/com_handlers.c
+++ b/ext/com_dotnet/com_handlers.c
@@ -316,7 +316,9 @@ static union _zend_function *com_method_get(zval *object, char *name, int len TS
ITypeComp_Release(bindptr.lptcomp);
break;
}
- ITypeInfo_Release(TI);
+ if (TI) {
+ ITypeInfo_Release(TI);
+ }
}
ITypeComp_Release(comp);
efree(olename);