Skip to content

Commit

Permalink
- Fix #55301 (sybase part, take php#2) check if malloc succeded
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrejoye committed Jul 28, 2011
1 parent 5b0373b commit 363b56f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/sybase_ct/php_sybase_ct.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 363b56f

Please sign in to comment.