diff mbox series

[PULL,10/21] plugins/cache: freed heap-allocated mutexes

Message ID 20211103170558.717981-11-alex.bennee@linaro.org
State New
Headers show
Series testing, plugin and gdbstub updates | expand

Commit Message

Alex Bennée Nov. 3, 2021, 5:05 p.m. UTC
From: Mahmoud Mandour <ma.mandourr@gmail.com>


Signed-off-by: Mahmoud Mandour <ma.mandourr@gmail.com>

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>

Message-Id: <20210810134844.166490-2-ma.mandourr@gmail.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>

Message-Id: <20211026102234.3961636-14-alex.bennee@linaro.org>

-- 
2.30.2
diff mbox series

Patch

diff --git a/contrib/plugins/cache.c b/contrib/plugins/cache.c
index a1e03ca882..a255e26e25 100644
--- a/contrib/plugins/cache.c
+++ b/contrib/plugins/cache.c
@@ -614,6 +614,9 @@  static void plugin_exit(qemu_plugin_id_t id, void *p)
     caches_free(dcaches);
     caches_free(icaches);
 
+    g_free(dcache_locks);
+    g_free(icache_locks);
+
     g_hash_table_destroy(miss_ht);
 }