]> granicus.if.org Git - postgresql/blobdiff - src/backend/commands/copy.c
Fix memory leak created by deferrable-index-constraints patches.
[postgresql] / src / backend / commands / copy.c
index b7e1a175b53d93df81fba0ba990e896a6ad0c237..cfaa3927bc7b1240b933ef166fd1a94336f67665 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/commands/copy.c,v 1.321 2010/01/15 09:19:01 heikki Exp $
+ *       $PostgreSQL: pgsql/src/backend/commands/copy.c,v 1.322 2010/01/31 18:15:39 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -2172,6 +2172,8 @@ CopyFrom(CopyState cstate)
                        ExecARInsertTriggers(estate, resultRelInfo, tuple,
                                                                 recheckIndexes);
 
+                       list_free(recheckIndexes);
+
                        /*
                         * We count only tuples not suppressed by a BEFORE INSERT trigger;
                         * this is the same definition used by execMain.c for counting