[tracker-miners/wip/carlosg/miner-files-queues: 9/10] libtracker-miner: Plug string leaks




commit 3dc37cb5e89f733dc7c6c10d8847b02b03b0224a
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Dec 27 10:25:02 2021 +0100

    libtracker-miner: Plug string leaks
    
    The mimetype/extractorHash info from pre-existing files queried
    during startup would be leaked.

 src/libtracker-miner/tracker-file-notifier.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/libtracker-miner/tracker-file-notifier.c b/src/libtracker-miner/tracker-file-notifier.c
index 52595f17b..430c79956 100644
--- a/src/libtracker-miner/tracker-file-notifier.c
+++ b/src/libtracker-miner/tracker-file-notifier.c
@@ -366,6 +366,8 @@ static void
 file_data_free (TrackerFileData *file_data)
 {
        g_object_unref (file_data->file);
+       g_free (file_data->extractor_hash);
+       g_free (file_data->mimetype);
        g_slice_free (TrackerFileData, file_data);
 }
 


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