diff options
author | Pierre Joye <pajoye@php.net> | 2011-07-28 21:16:51 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2011-07-28 21:16:51 +0000 |
commit | d7819b62cc849d2f5a59935fff30fb1ef439ac75 (patch) | |
tree | 8105133f60cdab74339850107ecf8c798d945243 /ext/sybase_ct | |
parent | b32445d4f3ad5954db43761312be7a8f3fc58ca3 (diff) | |
download | php-git-d7819b62cc849d2f5a59935fff30fb1ef439ac75.tar.gz |
- Fix #55301 (sybase part, take #2) check if malloc succeded
Diffstat (limited to 'ext/sybase_ct')
-rw-r--r-- | ext/sybase_ct/php_sybase_ct.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/sybase_ct/php_sybase_ct.c b/ext/sybase_ct/php_sybase_ct.c index 5429a3c88d..e3dc415f83 100644 --- a/ext/sybase_ct/php_sybase_ct.c +++ b/ext/sybase_ct/php_sybase_ct.c @@ -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; } |