Ticket #3475: (find_file): fix memory leaks.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2015-06-19 16:48:23 +03:00
parent 2c37497f0e
commit 677b5c4f40
1 changed files with 7 additions and 0 deletions

View File

@ -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;