Skip to content

Commit

Permalink
Fix memory context for List node allocation in op_rewrite.c
Browse files Browse the repository at this point in the history
  • Loading branch information
var77 authored and Ngalstyan4 committed Dec 4, 2023
1 parent 96f50b3 commit e940115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/op_rewrite.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ static Node *operator_rewriting_mutator(Node *node, void *ctx)
}

if(IsA(node, List)) {
MemoryContext old = MemoryContextSwitchTo(MessageContext);
MemoryContext old = MemoryContextSwitchTo(PortalContext);
List *list = (List *)node;
List *ret = NIL;
ListCell *lc;
Expand Down

0 comments on commit e940115

Please sign in to comment.