fix qpack fuzz test leak
@@ -874,7 +874,11 @@ int h3zero_qpack_fuzz_test()
while (parsed != NULL && parsed < bytes_max) {
/* Attempt to parse the next header.
* the test succeeds if that does not cause a crash */
+ memset(&parts, 0, sizeof(parts));
parsed = h3zero_parse_qpack_header_frame(parsed, bytes_max, &parts);
+ if (parts.path != NULL) {
+ free((void*)parts.path);
+ }
n_good += (parsed != NULL) ? 1 : 0;
n_trials++;
}
