mirror of
https://github.com/php/php-src.git
synced 2025-01-22 03:34:19 +08:00
- Fix #55301 (com_dotnet part) check if malloc succeded
This commit is contained in:
parent
40b059de97
commit
0c715414e0
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user