[grilo] core: plug leak of filename
- From: Victor Toso de Carvalho <victortoso src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo] core: plug leak of filename
- Date: Fri, 15 Jan 2016 09:44:53 +0000 (UTC)
commit 586dd093096422522e7872e3a37c7597cd264e0a
Author: Tim Lunn <tim feathertop org>
Date: Fri Jan 15 11:03:40 2016 +1100
core: plug leak of filename
https://bugzilla.gnome.org/show_bug.cgi?id=760648
src/grl-registry.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/grl-registry.c b/src/grl-registry.c
index 0622ef0..de04000 100644
--- a/src/grl-registry.c
+++ b/src/grl-registry.c
@@ -1264,6 +1264,7 @@ grl_registry_load_plugin_directory (GrlRegistry *registry,
while ((entry = g_dir_read_name (dir)) != NULL) {
filename = g_build_filename (path, entry, NULL);
if (g_strrstr (filename, "." G_MODULE_SUFFIX) == NULL) {
+ g_free (filename);
continue;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]