aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Frolov <frolov@swemel.ru>2024-05-21 13:31:08 +0300
committerThomas Huth <thuth@redhat.com>2024-06-24 08:10:06 +0200
commit7c66540db45a726029e5165f6e5c34008f08edec (patch)
tree7af72be8a2eb2e234605a420c0d58ba18e4c1814
parentd48a54042f25d6f1fe442e3a524b1f2b7afd6d8e (diff)
downloadqemu-7c66540db45a726029e5165f6e5c34008f08edec.zip
qemu-7c66540db45a726029e5165f6e5c34008f08edec.tar.gz
qemu-7c66540db45a726029e5165f6e5c34008f08edec.tar.bz2
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>
-rw-r--r--tests/qtest/fuzz/qos_fuzz.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/qtest/fuzz/qos_fuzz.c b/tests/qtest/fuzz/qos_fuzz.c
index b71e945..d3839bf 100644
--- a/tests/qtest/fuzz/qos_fuzz.c
+++ b/tests/qtest/fuzz/qos_fuzz.c
@@ -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);
}