[fuzz] Fix leak in block_round_trip

This commit is contained in:
Nick Terrell 2019-09-13 10:32:38 -07:00
parent 7c4578160e
commit d721fcf3ee

View File

@ -60,7 +60,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *src, size_t size)
size_t neededBufSize = size;
if (size > ZSTD_BLOCKSIZE_MAX)
return 0;
size = ZSTD_BLOCKSIZE_MAX;
/* Allocate all buffers and contexts if not already allocated */
if (neededBufSize > bufSize || !cBuf || !rBuf) {