- 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 b32445d4f3
commit d7819b62cc

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;
}