Skip to content

Commit

Permalink
Merge pull request #2706 from alltilla/patterndb_memleak
Browse files Browse the repository at this point in the history
dbparser: fix memleak
  • Loading branch information
furiel committed May 3, 2019
2 parents 4617a56 + 993f499 commit a2f0d36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/dbparser/pdb-file.c
Expand Up @@ -193,7 +193,7 @@ pdb_get_filenames(const gchar *dir_path, gboolean recursive, gchar *pattern, GEr
}
for (guint i = 0; i < recursive_filenames->len; ++i)
g_ptr_array_add(filenames, g_ptr_array_index(recursive_filenames, i));
g_ptr_array_free(recursive_filenames, FALSE);
g_free(g_ptr_array_free(recursive_filenames, FALSE));
g_free(full_path);
}
else if (is_file_regular(full_path) && (!pattern || g_pattern_match_simple(pattern, full_path)))
Expand Down

0 comments on commit a2f0d36

Please sign in to comment.