mirror of https://github.com/MidnightCommander/mc
Ticket #3475: (find_file): fix memory leaks.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
2c37497f0e
commit
677b5c4f40
|
@ -1770,7 +1770,13 @@ find_file (void)
|
|||
int v;
|
||||
|
||||
if (pattern[0] == '\0')
|
||||
{
|
||||
g_free (start_dir);
|
||||
g_free (ignore_dirs);
|
||||
g_free (pattern);
|
||||
g_free (content);
|
||||
break; /* nothing search */
|
||||
}
|
||||
|
||||
last_refresh.tv_sec = 0;
|
||||
last_refresh.tv_usec = 0;
|
||||
|
@ -1805,6 +1811,7 @@ find_file (void)
|
|||
vfs_path_free (filename_vpath);
|
||||
}
|
||||
|
||||
g_free (content);
|
||||
g_free (dirname);
|
||||
g_free (filename);
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue