[tracker/fts4: 26/26] tracker-info: Fixed memory leak where urn	wasn't freed.
- From: Martyn James Russell <mr src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [tracker/fts4: 26/26] tracker-info: Fixed memory leak where urn	wasn't freed.
 
- Date: Tue,  5 Feb 2013 16:56:16 +0000 (UTC)
 
commit 107cfb8ec276ac9415c1e2e621afc4fc03f30964
Author: Martyn Russell <martyn lanedo com>
Date:   Tue Feb 5 16:50:50 2013 +0000
    tracker-info: Fixed memory leak where urn wasn't freed.
 src/tracker-utils/tracker-info.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-utils/tracker-info.c b/src/tracker-utils/tracker-info.c
index a5b4b9c..ebf474d 100644
--- a/src/tracker-utils/tracker-info.c
+++ b/src/tracker-utils/tracker-info.c
@@ -401,7 +401,7 @@ main (int argc, char **argv)
 		GError *error = NULL;
 		gchar *uri;
 		gchar *query;
-		gchar *urn;
+		gchar *urn = NULL;
 
 		if (!turtle) {
 			g_print ("%s:'%s'\n", _("Querying information for entity"), *p);
@@ -495,6 +495,8 @@ main (int argc, char **argv)
 		}
 
 		g_print ("\n");
+
+		g_free (urn);
 	}
 
 	g_hash_table_unref (prefixes);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]