[gnome-flashback] monitor-config-store: suppress memory leak defect



commit 3525d37e9ef911fcb8af56d4eb5dcbee1732f54e
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Tue Mar 16 21:31:42 2021 +0200

    monitor-config-store: suppress memory leak defect
    
    Variable `data` is freed in `save_cb()`.
    
    Coverity CID: #1502691

 backends/gf-monitor-config-store.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/backends/gf-monitor-config-store.c b/backends/gf-monitor-config-store.c
index 7149422..86589ed 100644
--- a/backends/gf-monitor-config-store.c
+++ b/backends/gf-monitor-config-store.c
@@ -1480,6 +1480,8 @@ gf_monitor_config_store_save (GfMonitorConfigStore *config_store)
                                  G_FILE_CREATE_REPLACE_DESTINATION,
                                  config_store->save_cancellable,
                                  saved_cb, data);
+
+  /* coverity[leaked_storage : FALSE] */
 }
 
 static void


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