]> granicus.if.org Git - postgresql/commitdiff
For consistency add a pfree to ON CONFLICT set_plan_refs code.
authorAndres Freund <andres@anarazel.de>
Sun, 12 Jul 2015 20:18:57 +0000 (22:18 +0200)
committerAndres Freund <andres@anarazel.de>
Sun, 12 Jul 2015 20:18:57 +0000 (22:18 +0200)
Backpatch to 9.5 where ON CONFLICT was introduced.

Author: Peter Geoghegan

src/backend/optimizer/plan/setrefs.c

index 820f69dc67c52c898659ce0b815fc16f00765dec..46d84d39a00eb7cf68400bf081a81907b5c166e3 100644 (file)
@@ -776,6 +776,8 @@ set_plan_refs(PlannerInfo *root, Plan *plan, int rtoffset)
                                                                          linitial_int(splan->resultRelations),
                                                                          rtoffset);
 
+                                       pfree(itlist);
+
                                        splan->exclRelTlist =
                                                fix_scan_list(root, splan->exclRelTlist, rtoffset);
                                }