Skip to content

Commit

Permalink
Merge pull request #1 from JennyJennyChen/JennyJennyChen-fix_coredump
Browse files Browse the repository at this point in the history
Fixed segmentation fault
  • Loading branch information
JennyJennyChen authored Oct 16, 2024
2 parents 3336733 + 326b6e1 commit 7190f46
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 7190f46

Please sign in to comment.