Ticket #3440: (find_file): fix memory leak.

Find_parameter() allocate start_dir but object will never freed.

Testcase: search file.

(Found by LeakSanitizer.)

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andreas Mohr 2015-04-11 13:05:54 +03:00 committed by Andrew Borodin
parent 9fa3138377
commit 39fec422c2

View File

@ -1778,6 +1778,7 @@ find_file (void)
dirname = filename = NULL;
is_start = FALSE;
v = do_find (start_dir, start_dir_len, ignore_dirs, pattern, content, &dirname, &filename);
g_free (start_dir);
g_free (ignore_dirs);
g_free (pattern);