From: Pavan Deolasee Date: Thu, 14 Apr 2016 07:15:18 +0000 (+0530) Subject: Plug a memory leak that might help OOM situations in ALTER TABLE .. ADD NODE X-Git-Tag: XL9_5_R1~4 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=9bca2bd608c11b4abe6cb25539c41f8f965ec751;p=postgres-xl.git Plug a memory leak that might help OOM situations in ALTER TABLE .. ADD NODE case Report by Florian Iragne --- 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,