fix memory leak in pgxc_planner

This commit is contained in:
yanghao
2021-03-29 10:14:18 +08:00
parent 28934bcdfa
commit e50da3586d

View File

@ -175,6 +175,7 @@ PlannedStmt* pgxc_planner(Query* query, int cursorOptions, ParamListInfo boundPa
ReSetNgQueryMem(result);
}
t_thrd.utils_cxt.CurrentResourceOwner = currentOwner;
ResourceOwnerDelete(tempOwner);
}
PG_CATCH();
{