Github user kavinderd commented on a diff in the pull request:
https://github.com/apache/incubator-hawq/pull/796#discussion_r71558813
--- Diff: src/backend/access/external/fileam.c ---
@@ -454,6 +454,21 @@ external_stopscan(FileScanDesc scan)
}
}
+/* ----------------
+ * external_getnext_init - prepare ExternalSelectDesc struct
before external_getnext
+/* ----------------
+ */
+
+ExternalSelectDesc
+external_getnext_init(PlanState *state) {
+ ExternalSelectDesc desc = (ExternalSelectDesc)
palloc0(sizeof(ExternalSelectDescData));
--- End diff --
I missed adding `pfree` for `desc`. I added it to the end of
`ExternalNext()`
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---