lz4io: fixed minor ressource leak

This commit is contained in:
Yann Collet 2018-01-13 22:18:04 -08:00
parent 52a76ff682
commit fe66e78b96

View File

@ -459,6 +459,7 @@ static void* LZ4IO_createDict(const char* dictFilename, size_t *dictSize) {
memcpy(dictBuf + circularBufSize - dictStart, circularBuf, dictLen - (circularBufSize - dictStart));
}
fclose(dictFile);
free(circularBuf);
return dictBuf;