Plug a memory leak that might help OOM situations in ALTER TABLE .. ADD NODE
authorPavan Deolasee <[email protected]>
Thu, 14 Apr 2016 07:15:18 +0000 (12:45 +0530)
committerPavan Deolasee <[email protected]>
Thu, 14 Apr 2016 07:17:08 +0000 (12:47 +0530)
case

Report by Florian Iragne

src/backend/pgxc/locator/redistrib.c

index 200d6424dc6117dfa00d4b81b2c7b47dbd514a1b..13074e885ac0686d217c68148dce7f4453d45836 100644 (file)
@@ -549,6 +549,8 @@ distrib_copy_from(RedistribState *distribState, ExecNodes *exec_nodes)
                                                                                  typioparam, typmod);
                                is_null = false;
                        }
+
+                       pfree(fields);
                }
 
                if (DataNodeCopyIn(data, len,