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

This commit is contained in:
Pierre Joye 2011-07-28 10:31:34 +00:00
parent be217d08a4
commit 103d475021

View File

@ -819,6 +819,9 @@ PHP_MINIT_FUNCTION(curl)
int i, c = CRYPTO_num_locks();
php_curl_openssl_tsl = malloc(c * sizeof(MUTEX_T));
if (!php_curl_openssl_tsl) {
return FAILURE;
}
for (i = 0; i < c; ++i) {
php_curl_openssl_tsl[i] = tsrm_mutex_alloc();