Rsyslog: parameter "tmp_cursor" need free after used.

Created on 21 Jan 2019  路  6Comments  路  Source: rsyslog/rsyslog

All 6 comments

@ChenQianCQ thx for the bug report!

@jvymazal could you have a look or should I check?

looks correct (that is, the bug is there), will follow with PR.

@jvymazal thx a ton! Do you think we could try to reproduce this with a CI test (and valgrind?). That would be a nice addition.

Maybe we need check all caller of "sd_journal_get_cursor". In function "persistJournalState" , it just get and replace global parameter "last_cursor", also not freed.

@ChenQianCQ thx again! Are you willing to submit a PR? That would really be phantastic! Also everyone would see from the commit history that you did great work. I am happy to help with get it going.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings