Skip to content

Commit

Permalink
Merge pull request rsyslog#4954 from t-feng/master
Browse files Browse the repository at this point in the history
Fix Segmentation fault in close journal
  • Loading branch information
rgerhards authored Aug 9, 2022
2 parents 4d63968 + eab250b commit 8a9f1b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/imjournal/imjournal.c
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,9 @@ CODESTARTafterRun
persistJournalState();
}
closeJournal();
ratelimitDestruct(ratelimiter);
if (ratelimiter) {
ratelimitDestruct(ratelimiter);
}
ENDafterRun


Expand Down

0 comments on commit 8a9f1b1

Please sign in to comment.