Fixes dummy leak in fuzz driver

This commit is contained in:
Philippe Antoine 2019-06-04 12:06:34 +02:00
parent 2b7c9a2e1a
commit 3abe15bc2c

View file

@ -38,12 +38,14 @@ int main(int argc, char** argv)
return 2;
}
if (fread(Data, Size, 1, fp) != 1) {
free(Data);
fclose(fp);
return 2;
}
//lauch fuzzer
LLVMFuzzerTestOneInput(Data, Size);
free(Data);
fclose(fp);
return 0;
}