diff options
author | Pavan Deolasee | 2016-04-14 07:15:18 +0000 |
---|---|---|
committer | Pavan Deolasee | 2016-10-18 10:05:06 +0000 |
commit | bee1d7e4c0b33349ea1c12525d865a0829fd2ab0 (patch) | |
tree | 773d0fbc90224a8754cf50d57ecdd3ca180300c7 | |
parent | f8dc25afac7dfd74456d8f05989af5506a49d0f9 (diff) |
Plug a memory leak that might help OOM situations in ALTER TABLE .. ADD NODE
case
Report by Florian Iragne
-rw-r--r-- | src/backend/pgxc/locator/redistrib.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/pgxc/locator/redistrib.c b/src/backend/pgxc/locator/redistrib.c index 200d6424dc..13074e885a 100644 --- a/src/backend/pgxc/locator/redistrib.c +++ b/src/backend/pgxc/locator/redistrib.c @@ -549,6 +549,8 @@ distrib_copy_from(RedistribState *distribState, ExecNodes *exec_nodes) typioparam, typmod); is_null = false; } + + pfree(fields); } if (DataNodeCopyIn(data, len, |