Re: svn: /php/php-src/trunk/ext/sybase_ct/ php_sybase_ct.c

From: Date: Thu, 28 Jul 2011 14:43:52 +0000
Subject: Re: svn: /php/php-src/trunk/ext/sybase_ct/ php_sybase_ct.c
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-65649@lists.php.net to get a copy of this message
On 7/28/11 3:58 AM, Pierre Joye wrote:
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; + }
I'm not sure I understand - why you failing here if malloc succeeds? -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227

« previous php.cvs (#65649) next »