mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-22 23:21:07 +00:00
Fixes dummy leak in fuzz driver
This commit is contained in:
parent
2b7c9a2e1a
commit
3abe15bc2c
|
@ -38,12 +38,14 @@ int main(int argc, char** argv)
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
if (fread(Data, Size, 1, fp) != 1) {
|
if (fread(Data, Size, 1, fp) != 1) {
|
||||||
|
free(Data);
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
//lauch fuzzer
|
//lauch fuzzer
|
||||||
LLVMFuzzerTestOneInput(Data, Size);
|
LLVMFuzzerTestOneInput(Data, Size);
|
||||||
|
free(Data);
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue