Skip to content

Commit

Permalink
Possible fix for issue #29: pass true to ExecStoreTuple, so that it p…
Browse files Browse the repository at this point in the history
…frees memory when it's cleaning up
  • Loading branch information
GeoffMontee committed Sep 16, 2015
1 parent fd5b441 commit 8f15569
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tds_fdw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1445,7 +1445,7 @@ TupleTableSlot* tdsIterateForeignScan(ForeignScanState *node)
#endif

tuple = BuildTupleFromCStrings(TupleDescGetAttInMetadata(node->ss.ss_currentRelation->rd_att), values);
ExecStoreTuple(tuple, slot, InvalidBuffer, false);
ExecStoreTuple(tuple, slot, InvalidBuffer, true);


for (ncol = 0; ncol < festate->ncols; ncol++)
Expand Down

0 comments on commit 8f15569

Please sign in to comment.