summaryrefslogtreecommitdiff
path: root/ext/com_dotnet
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2011-07-28 10:34:16 +0000
committerPierre Joye <pajoye@php.net>2011-07-28 10:34:16 +0000
commit8535adfb3106acec08f98c1969c1e12bdd2563ed (patch)
tree19a7946ce6d8167a843522a5404e91a5e505e012 /ext/com_dotnet
parent42c4b86c886a021abcf47e0144454b6e04d504ff (diff)
downloadphp-git-8535adfb3106acec08f98c1969c1e12bdd2563ed.tar.gz
- Fix #55301 (com_dotnet part) check if malloc succeded
Diffstat (limited to 'ext/com_dotnet')
-rw-r--r--ext/com_dotnet/com_dotnet.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/com_dotnet/com_dotnet.c b/ext/com_dotnet/com_dotnet.c
index 0cb30b04a9..acbd3979a8 100644
--- a/ext/com_dotnet/com_dotnet.c
+++ b/ext/com_dotnet/com_dotnet.c
@@ -129,6 +129,9 @@ static HRESULT dotnet_init(char **p_where TSRMLS_DC)
char *where = "";
stuff = malloc(sizeof(*stuff));
+ if (!stuff) {
+ return S_FALSE;
+ }
memset(stuff, 0, sizeof(*stuff));
where = "CoCreateInstance";