Author: turnstep
Date: Mon Jan 21 21:16:02 2008
New Revision: 10632

Modified:
   DBD-Pg/trunk/dbdimp.c

Log:
Free savepoint in case we leave before the dbh is registered.


Modified: DBD-Pg/trunk/dbdimp.c
==============================================================================
--- DBD-Pg/trunk/dbdimp.c       (original)
+++ DBD-Pg/trunk/dbdimp.c       Mon Jan 21 21:16:02 2008
@@ -190,6 +190,7 @@
                pg_error(dbh, status, PQerrorMessage(imp_dbh->conn));
                strncpy(imp_dbh->sqlstate, "08006", 6); /* "CONNECTION FAILURE" 
*/
                PQfinish(imp_dbh->conn);
+               sv_free((SV *)imp_dbh->savepoints);
                return 0;
        }
 

Reply via email to