mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-04 07:01:30 +03:00
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:
parent
9fa3138377
commit
39fec422c2
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user