[tracker] libtracker-data: Fix leak in db_get_locale



commit 171b80de3205e0e589b08b9acb880369bbc07294
Author: JÃrg Billeter <j bitron ch>
Date:   Wed Jun 29 17:38:10 2011 +0200

    libtracker-data: Fix leak in db_get_locale

 src/libtracker-data/tracker-db-manager.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-data/tracker-db-manager.c b/src/libtracker-data/tracker-db-manager.c
index 0d0fcf7..c88a960 100644
--- a/src/libtracker-data/tracker-db-manager.c
+++ b/src/libtracker-data/tracker-db-manager.c
@@ -616,7 +616,7 @@ db_get_locale (void)
 	} else {
 		/* expected when restoring from backup, always recreate indices */
 		g_message ("  Could not find database locale file:'%s'", filename);
-		return g_strdup ("unknown");
+		locale = g_strdup ("unknown");
 	}
 
 	g_free (filename);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]