mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
tests/qtest/fuzz: fix memleak in qos_fuzz.c
Found with fuzzing for qemu-8.2, but also relevant for master Signed-off-by: Dmitry Frolov <frolov@swemel.ru> Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Alexander Bulekov <alxndr@bu.edu> Message-ID: <20240521103106.119021-3-frolov@swemel.ru> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
d48a54042f
commit
7c66540db4
1 changed files with 1 additions and 0 deletions
|
@ -180,6 +180,7 @@ static void walk_path(QOSGraphNode *orig_path, int len)
|
|||
|
||||
fuzz_path_vec = path_vec;
|
||||
} else {
|
||||
g_string_free(cmd_line, true);
|
||||
g_free(path_vec);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue