[tracker: 1/2] tracker-data-update: remove `g_free`




commit f94626669e2050b12440176728c8247263ad6953
Author: Nishit Patel <nishitlimbani130 gmail com>
Date:   Tue Jun 8 19:55:37 2021 +0530

    tracker-data-update: remove `g_free`
    
    when using `g_bytes_new_take` data should not be
    freed with `g_free`

 src/libtracker-data/tracker-data-update.c | 1 -
 1 file changed, 1 deletion(-)
---
diff --git a/src/libtracker-data/tracker-data-update.c b/src/libtracker-data/tracker-data-update.c
index bb7373808..cbd2fc46a 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -1827,7 +1827,6 @@ bytes_from_gvalue (GValue       *gvalue,
                datetime = g_value_get_boxed (gvalue);
                str = tracker_date_format_iso8601 (datetime);
                *bytes = g_bytes_new_take (str, strlen (str) + 1);
-               g_free (str);
        } else {
                g_set_error (error,
                             TRACKER_SPARQL_ERROR,


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