mirror of
https://github.com/lz4/lz4.git
synced 2024-11-23 18:04:05 +08:00
lz4io: fixed minor ressource leak
This commit is contained in:
parent
52a76ff682
commit
fe66e78b96
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user