[tracker-miners: 3/6] tracker-extract: Fix memory leak
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners: 3/6] tracker-extract: Fix memory leak
- Date: Mon, 1 Apr 2019 11:55:55 +0000 (UTC)
commit a5f1a7e4179602679b0e2bbac170a4fedae9347a
Author: Andrea Azzarone <andrea azzarone canonical com>
Date: Mon Mar 18 18:35:37 2019 +0000
tracker-extract: Fix memory leak
Closes: https://gitlab.gnome.org/GNOME/tracker-miners/issues/59
src/tracker-extract/tracker-extract-desktop.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/tracker-extract/tracker-extract-desktop.c b/src/tracker-extract/tracker-extract-desktop.c
index 27e622127..3af3a9cf2 100644
--- a/src/tracker-extract/tracker-extract-desktop.c
+++ b/src/tracker-extract/tracker-extract-desktop.c
@@ -128,6 +128,7 @@ process_desktop_file (TrackerResource *resource,
if (g_key_file_get_boolean (key_file, GROUP_DESKTOP_ENTRY, "Hidden", NULL)) {
g_debug ("Desktop file is hidden");
g_key_file_free (key_file);
+ g_free (type);
return FALSE;
}
@@ -163,6 +164,7 @@ process_desktop_file (TrackerResource *resource,
} else {
/* Invalid type, all valid types are already listed above */
g_warning ("Unknown desktop entry type '%s'", type);
+ g_free (type);
g_key_file_free (key_file);
g_strfreev (cats);
g_free (lang);
@@ -253,6 +255,7 @@ process_desktop_file (TrackerResource *resource,
g_free (name);
g_free (lang);
+ g_free (type);
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]