[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] plugins/howvec: fix use-after-free
From: |
Pierrick Bouvier |
Subject: |
[PATCH] plugins/howvec: fix use-after-free |
Date: |
Mon, 11 Mar 2024 10:04:56 +0400 |
reported by coverity scan
---
contrib/plugins/howvec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/plugins/howvec.c b/contrib/plugins/howvec.c
index 2d10c87e0fb..5be91f6fc5c 100644
--- a/contrib/plugins/howvec.c
+++ b/contrib/plugins/howvec.c
@@ -168,8 +168,8 @@ static void free_record(gpointer data)
{
InsnExecCount *rec = (InsnExecCount *) data;
g_free(rec->insn);
- g_free(rec);
qemu_plugin_scoreboard_free(rec->count.score);
+ g_free(rec);
}
static void plugin_exit(qemu_plugin_id_t id, void *p)
--
2.39.2
- [PATCH] plugins/howvec: fix use-after-free,
Pierrick Bouvier <=