From 216067a43c73a6e4c4462eca7a28ed9b5ab30608 Mon Sep 17 00:00:00 2001 From: Andreas Mohr Date: Sat, 9 May 2015 16:10:29 +0300 Subject: [PATCH] Ticket #3459: (edit_clean): fix memory leak. Signed-off-by: Andrew Borodin --- src/editor/edit.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/editor/edit.c b/src/editor/edit.c index a4fa587d6..f3b86adb4 100644 --- a/src/editor/edit.c +++ b/src/editor/edit.c @@ -2195,6 +2195,7 @@ edit_clean (WEdit * edit) vfs_path_free (edit->dir_vpath); mc_search_free (edit->search); edit->search = NULL; + MC_PTR_FREE (edit->last_search_string); #ifdef HAVE_CHARSET if (edit->converter != str_cnv_from_term) -- 2.11.4.GIT