From d8f61ab1bb4aaaf05b365e02bad3fcd641da670c Mon Sep 17 00:00:00 2001 From: pancake Date: Tue, 10 Feb 2015 02:33:22 +0100 Subject: [PATCH] Fix #2037 - Double free in RCons.pager --- libr/core/core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libr/core/core.c b/libr/core/core.c index 32035f109940c..10774b68d2038 100644 --- a/libr/core/core.c +++ b/libr/core/core.c @@ -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);