[tracker/tracker-0.10] tracker-miner-fs: Fix use after free in extractor_process_failsafe



commit 94fa922a01b0664d45025c4f4a62f96a74c235c1
Author: JÃrg Billeter <j bitron ch>
Date:   Wed Mar 21 11:47:05 2012 +0100

    tracker-miner-fs: Fix use after free in extractor_process_failsafe
    
    Fixes NB#299221.

 src/miners/fs/tracker-miner-files.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/miners/fs/tracker-miner-files.c b/src/miners/fs/tracker-miner-files.c
index d536edd..95ab1dd 100644
--- a/src/miners/fs/tracker-miner-files.c
+++ b/src/miners/fs/tracker-miner-files.c
@@ -2107,7 +2107,6 @@ extractor_process_failsafe (TrackerMinerFiles *miner)
 
 		uri = g_file_get_uri (data->file);
 		g_message ("Performing failsafe extraction on '%s'", uri);
-		g_free (uri);
 
 		get_metadata_fast_async (data->miner->private->connection,
 		                         uri,
@@ -2115,6 +2114,8 @@ extractor_process_failsafe (TrackerMinerFiles *miner)
 		                         data->cancellable,
 		                         extractor_get_failsafe_metadata_cb,
 		                         data);
+
+		g_free (uri);
 	} else {
 		g_debug ("Failsafe extraction finished. Resuming miner...");
 



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