- Fix #55301 (sybase part, take #2) check if malloc succeded

This commit is contained in:
Pierre Joye 2011-07-28 21:16:51 +00:00
parent 2b606e0a39
commit 0b619f4f0b

View File

@ -777,7 +777,7 @@ static void php_sybase_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
}
sybase_ptr = (sybase_link *) malloc(sizeof(sybase_link));
if (sybase_ptr) {
if (!sybase_ptr) {
efree(hashed_details);
RETURN_FALSE;
}