[x] I made sure to follow the project's coding style
[ ] I've documented or updated the documentation of every function and struct this PR changes. If not so I've explained why.
[ ] I've added tests that prove my fix is effective or that my feature works (if possible)
[ ] I've updated the rizin book with the relevant information (if needed)
Detailed description
remove useless lastline
The variable I.lastline simply references the same things as CTX(buffer) instead of the last line as its name implies. IMO, we'd better remove it to avoid misleading the programmers.
PS: there is rz_cons_lastline() to get the last line of CTX(buffer).
Your checklist for this pull request
Detailed description
remove useless lastline
The variable
I.lastline
simply references the same things asCTX(buffer)
instead of the last line as its name implies. IMO, we'd better remove it to avoid misleading the programmers.PS: there is
rz_cons_lastline()
to get the last line of CTX(buffer).fix memory leaks
This PR also fixes several memory leaks.
Test plan
CI is green.
Closing issues
...