edink           Tue Aug 16 05:55:48 2005 EDT

  Modified files:              (Branch: PHP_5_1)
    /php-src/ext/pgsql  pgsql.c 
  Log:
  Use free() instead of PQfreemem() to maintain compabitibility with older
  PostgreSQL client libraries (bug #33813).
  
  
http://cvs.php.net/diff.php/php-src/ext/pgsql/pgsql.c?r1=1.331&r2=1.331.2.1&ty=u
Index: php-src/ext/pgsql/pgsql.c
diff -u php-src/ext/pgsql/pgsql.c:1.331 php-src/ext/pgsql/pgsql.c:1.331.2.1
--- php-src/ext/pgsql/pgsql.c:1.331     Wed Aug  3 10:07:40 2005
+++ php-src/ext/pgsql/pgsql.c   Tue Aug 16 05:55:44 2005
@@ -20,7 +20,7 @@
    +----------------------------------------------------------------------+
  */
  
-/* $Id: pgsql.c,v 1.331 2005/08/03 14:07:40 sniper Exp $ */
+/* $Id: pgsql.c,v 1.331.2.1 2005/08/16 09:55:44 edink Exp $ */
 
 #include <stdlib.h>
 
@@ -3251,7 +3251,7 @@
                                                        break;
                                                default:
                                                        
add_next_index_string(return_value, csv, 1);
-                                                       PQfreemem(csv);
+                                                       free(csv);
                                                        break;
                                        }
                                }
@@ -3598,7 +3598,7 @@
 #if HAVE_PQUNESCAPEBYTEA
        tmp = (char *)PQunescapeBytea((unsigned char*)from, &to_len);
        to = estrndup(tmp, to_len);
-       PQfreemem(tmp);
+       free(tmp);
 #else
        to = (char *)php_pgsql_unescape_bytea((unsigned char*)from, &to_len);
 #endif

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

Reply via email to