[tracker: 11/21] libtracker-direct: Fix memory leak



commit 354a1cd6b8748bbadb74332439f52a66c923b98b
Author: Andrea Azzarone <andrea azzarone canonical com>
Date:   Wed Jan 23 19:27:21 2019 +0000

    libtracker-direct: Fix memory leak
    
    The value returned from a call to g_strjoinv has to be freed using g_free.

 src/libtracker-direct/tracker-direct.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/libtracker-direct/tracker-direct.c b/src/libtracker-direct/tracker-direct.c
index 7d62c6f30..b9443900f 100644
--- a/src/libtracker-direct/tracker-direct.c
+++ b/src/libtracker-direct/tracker-direct.c
@@ -569,6 +569,7 @@ update_array_async_thread_func (GTask        *task,
        tracker_sparql_connection_update (source_object, concatenated,
                                          g_task_get_priority (task),
                                          cancellable, &error);
+       g_free (concatenated);
 
        if (!error) {
                g_task_return_pointer (task, errors,


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