pajoye Thu, 28 Jul 2011 10:58:28 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=313834
Log: - Fix #55301 (sybase part) check if malloc succeded Bug: https://bugs.php.net/55301 (error getting bug information) Changed paths: U php/php-src/trunk/ext/sybase_ct/php_sybase_ct.c Modified: php/php-src/trunk/ext/sybase_ct/php_sybase_ct.c =================================================================== --- php/php-src/trunk/ext/sybase_ct/php_sybase_ct.c 2011-07-28 10:57:31 UTC (rev 313833) +++ php/php-src/trunk/ext/sybase_ct/php_sybase_ct.c 2011-07-28 10:58:28 UTC (rev 313834) @@ -777,6 +777,10 @@ } sybase_ptr = (sybase_link *) malloc(sizeof(sybase_link)); + if (sybase_ptr) { + efree(hashed_details); + RETURN_FALSE; + } if (!php_sybase_do_connect_internal(sybase_ptr, host, user, passwd, charset, appname TSRMLS_CC)) { free(sybase_ptr); efree(hashed_details);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php