Author: turnstep
Date: Tue Nov 30 08:16:38 2010
New Revision: 14555
Modified:
DBD-Pg/trunk/Changes
DBD-Pg/trunk/dbdimp.c
Log:
Fix memory leak in handle_old_async (missing PQclear) [Rainer Weikusat] (CPAN
bug #63408)
Modified: DBD-Pg/trunk/Changes
==============================================================================
--- DBD-Pg/trunk/Changes (original)
+++ DBD-Pg/trunk/Changes Tue Nov 30 08:16:38 2010
@@ -4,6 +4,8 @@
- New method for handling UTF8: partially deprecate pg_enable_utf8.
(still in progress)
+ - Fix memory leak in handle_old_async (missing PQclear)
+ [Rainer Weikusat] (CPAN bug #63408)
- 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
Modified: DBD-Pg/trunk/dbdimp.c
==============================================================================
--- DBD-Pg/trunk/dbdimp.c (original)
+++ DBD-Pg/trunk/dbdimp.c Tue Nov 30 08:16:38 2010
@@ -4853,6 +4853,8 @@
/* Suck up the cancellation notice */
TRACE_PQGETRESULT;
while ((result = PQgetResult(imp_dbh->conn)) != NULL) {
+ TRACE_PQCLEAR;
+ PQclear(result);
}
/* We need to rollback! - reprepare!? */
TRACE_PQEXEC;