felipe          Wed Oct 15 13:34:46 2008 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src/ext/pgsql  pgsql.c 
  Log:
  - Fixed possible efree(NULL)
  
http://cvs.php.net/viewvc.cgi/php-src/ext/pgsql/pgsql.c?r1=1.331.2.13.2.30&r2=1.331.2.13.2.31&diff_format=u
Index: php-src/ext/pgsql/pgsql.c
diff -u php-src/ext/pgsql/pgsql.c:1.331.2.13.2.30 
php-src/ext/pgsql/pgsql.c:1.331.2.13.2.31
--- php-src/ext/pgsql/pgsql.c:1.331.2.13.2.30   Mon Oct 13 13:46:25 2008
+++ php-src/ext/pgsql/pgsql.c   Wed Oct 15 13:34:45 2008
@@ -20,7 +20,7 @@
    +----------------------------------------------------------------------+
  */
  
-/* $Id: pgsql.c,v 1.331.2.13.2.30 2008/10/13 13:46:25 felipe Exp $ */
+/* $Id: pgsql.c,v 1.331.2.13.2.31 2008/10/15 13:34:45 felipe Exp $ */
 
 #include <stdlib.h>
 
@@ -1201,7 +1201,9 @@
        if (num_params > 0) {
                int i;
                for (i = 0; i < num_params; i++) {
-                       efree(params[i]);
+                       if (params[i]) {
+                               efree(params[i]);
+                       }
                }
                efree(params);
        }



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to