]> granicus.if.org Git - php/commitdiff
Fixed double-free bug.
authorIlia Alshanetsky <iliaa@php.net>
Tue, 28 Jun 2005 04:03:58 +0000 (04:03 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 28 Jun 2005 04:03:58 +0000 (04:03 +0000)
ext/pdo_pgsql/pgsql_driver.c

index b63b20f125b261bc6fa5a1e7419d7e8e50ee91fa..9137d193a8877660474896465848abdb306b4cb7 100644 (file)
@@ -163,7 +163,6 @@ static long pgsql_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRM
 #if HAVE_PQRESULTERRORFIELD
                        char * sqlstate = PQresultErrorField(res, PG_DIAG_SQLSTATE);
                        pdo_pgsql_error(dbh, qs, (const char *)sqlstate);
-                       PQfreemem(sqlstate);
 #else
                        pdo_pgsql_error(dbh, qs, NULL);
 #endif