- Fix #55301 (com_dotnet part) check if malloc succeded

This commit is contained in:
Pierre Joye 2011-07-28 10:34:16 +00:00
parent 40b059de97
commit 0c715414e0

View File

@ -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";