Author: turnstep
Date: Tue Nov 30 07:48:12 2010
New Revision: 14553
Modified:
DBD-Pg/trunk/Changes
DBD-Pg/trunk/dbdimp.c
Log:
Fix memory leak in pg_db_cancel (missing PQclear)[Rainer Weikusat] (CPAN bug #63441)
Modified: DBD-Pg/trunk/Changes
==============================================================================
--- DBD-Pg/trunk/Changes (original)
+++ DBD-Pg/trunk/Changes Tue Nov 30 07:48:12 2010
@@ -2,6 +2,8 @@
2.17.3
+ - Fix memory leak in pg_db_cancel (missing PQclear)
+ [Rainer Weikusat] (CPAN bug #63441)
- Fix the number of tests to skip in t/01connect.t when the $DBI_DSN
environment variable lacks a database specification.
- Fix algorithm for skiping tests in t/06bytea.t when running on a version
Modified: DBD-Pg/trunk/dbdimp.c
==============================================================================
--- DBD-Pg/trunk/dbdimp.c (original)
+++ DBD-Pg/trunk/dbdimp.c Tue Nov 30 07:48:12 2010
@@ -4773,6 +4773,9 @@
status = _sqlstate(aTHX_ imp_dbh, result);
+ TRACE_PQCLEAR;
+ PQclear(result);
+
/* If we actually cancelled a running query, just return true - the caller must rollback if needed */
if (0 == strncmp(imp_dbh->sqlstate, "57014", 5)) {
if (TEND) TRC(DBILOGFP, "%sEnd pg_db_cancel\n", THEADER);
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.