Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Free buffer early when converting numerics 2x (#2471)
`TdsTypeNumericToDatum` [allocates a buffer](https://github.com/babelfish-for postgresql/babelfish_extensions/blob/6606b1118978477186869c3dddd2c6d85fcc6387/contrib/babelfishpg_tds/src/backend/tds/tdstypeio.c#L1133) for parsing incoming numeric data, but does not release this buffer. So it remains in `MessageContext` until the end of BCP import call. Proposed patch frees this buffer before exiting `TdsTypeNumericToDatum`. ### Issues Resolved #2455, BABEL-4882 Signed-off-by: Alex Kasko <[email protected]>
- Loading branch information