[gnome-flashback] monitor-config-store: suppress memory leak defect
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] monitor-config-store: suppress memory leak defect
- Date: Tue, 16 Mar 2021 20:43:13 +0000 (UTC)
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]