Skip to content

Commit

Permalink
Fix #2037 - Double free in RCons.pager
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Feb 10, 2015
1 parent 4654501 commit d8f61ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libr/core/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -882,6 +882,8 @@ R_API RCore *r_core_fini(RCore *c) {
if (!c) return NULL;
/* TODO: it leaks as shit */
//update_sdb (c);
// avoid double free
c->cons->pager = NULL;
r_core_task_join (c, NULL);
free (c->cmdqueue);
free (c->lastcmd);
Expand Down

0 comments on commit d8f61ab

Please sign in to comment.