Skip to content

Commit

Permalink
Fixed segmentation fault
Browse files Browse the repository at this point in the history
Fixed the bug that segmentation fault occurs when default_transaction_read_only is turned on during repacking. bug: #426
  • Loading branch information
JennyJennyChen authored and za-arthur committed Oct 30, 2024
1 parent 3336733 commit 632f67d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/pgut/pgut.c
Original file line number Diff line number Diff line change
Expand Up @@ -1235,9 +1235,12 @@ call_atexit_callbacks(bool fatal)
{
pgut_atexit_item *item;

for (item = pgut_atexit_stack; item; item = item->next)
item = pgut_atexit_stack;
while (item != NULL)
{
pgut_atexit_stack = pgut_atexit_stack->next;
item->callback(fatal, item->userdata);
item = pgut_atexit_stack;
}
}

Expand Down

0 comments on commit 632f67d

Please sign in to comment.