rizinorg / rizin

UNIX-like reverse engineering framework and command-line toolset.
https://rizin.re
GNU Lesser General Public License v3.0
2.51k stars 341 forks source link

cons: remove useless member <lastline> #4540

Closed PeiweiHu closed 3 weeks ago

PeiweiHu commented 3 weeks ago

Your checklist for this pull request

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).

fix memory leaks

This PR also fixes several memory leaks.

Test plan

CI is green.

Closing issues

...