We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcf7086 commit 4e46c97Copy full SHA for 4e46c97
src/backend/utils/sort/tuplesort.c
@@ -2800,7 +2800,8 @@ mergeonerun(Tuplesortstate *state)
2800
WRITETUP(state, destTape, &state->memtuples[0]);
2801
2802
/* recycle the slot of the tuple we just wrote out, for the next read */
2803
- RELEASE_SLAB_SLOT(state, state->memtuples[0].tuple);
+ if (state->memtuples[0].tuple)
2804
+ RELEASE_SLAB_SLOT(state, state->memtuples[0].tuple);
2805
2806
/*
2807
* pull next tuple from the tape, and replace the written-out tuple in
0 commit comments