Fix two minor memory leaks

This commit is contained in:
pancake 2023-03-28 23:05:32 +02:00
parent bed9f722b3
commit 8e15ae2b35
2 changed files with 2 additions and 0 deletions

View File

@ -32,6 +32,7 @@ R_API void r_log_init(void) {
R_API void r_log_fini(void) {
if (rlog) {
r_list_free (rlog->cbs);
free (rlog->file);
free (rlog->filter);
free (rlog);

View File

@ -352,6 +352,7 @@ R_API void r_print_free(RPrint *p) {
}
sdb_free (p->formats);
p->formats = NULL;
free (p->codevarname);
free (p->spinmsg);
R_FREE (p->strconv_mode);
if (p->zoom) {