Re: [PATCH v3 08/36] tests/qtests: clean-up and fix leak in generic_fuzz

2023-06-27 Thread Philippe Mathieu-Daudé
On 27/6/23 18:09, Alex Bennée wrote: An update to the clang tooling detects more issues with the code including a memory leak from the g_string_new() allocation. Clean up the code to avoid the allocation and use ARRAY_SIZE while we are at it. Signed-off-by: Alex Bennée ---

[PATCH v3 08/36] tests/qtests: clean-up and fix leak in generic_fuzz

2023-06-27 Thread Alex Bennée
An update to the clang tooling detects more issues with the code including a memory leak from the g_string_new() allocation. Clean up the code to avoid the allocation and use ARRAY_SIZE while we are at it. Signed-off-by: Alex Bennée --- tests/qtest/fuzz/generic_fuzz.c | 11 ++- 1 file

[PATCH v3 08/36] tests/qtests: clean-up and fix leak in generic_fuzz

2023-06-27 Thread Alex Bennée
An update to the clang tooling detects more issues with the code including a memory leak from the g_string_new() allocation. Clean up the code to avoid the allocation and use ARRAY_SIZE while we are at it. Signed-off-by: Alex Bennée --- tests/qtest/fuzz/generic_fuzz.c | 11 ++- 1 file