Skip to content

Commit

Permalink
xst: fabort once
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Soquet committed Mar 22, 2023
1 parent 2a72fd8 commit 731da6b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xs/tools/xst.c
Original file line number Diff line number Diff line change
Expand Up @@ -2142,10 +2142,10 @@ void fxAbort(txMachine* the, int status)
{
if (XS_DEBUGGER_EXIT == status)
c_exit(1);

if (!the->abortStatus)
the->abortStatus = status;

if (the->abortStatus) // xsEndHost calls fxAbort!
return;

the->abortStatus = status;
#if OSSFUZZ
lsan_disabled = 1; // disable leak checking
#endif
Expand Down

0 comments on commit 731da6b

Please sign in to comment.