diff options
author | Yann Collet <cyan@fb.com> | 2018-01-14 06:18:04 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2018-01-14 06:18:04 (GMT) |
commit | fe66e78b96ff3b8b167f02aacbc7c0721b893611 (patch) | |
tree | 70159d04567a68c03fc894e4df74533fbc47fdb6 /programs | |
parent | 52a76ff682042a310528c1c1bbe0d75c28131449 (diff) | |
download | lz4-fe66e78b96ff3b8b167f02aacbc7c0721b893611.zip lz4-fe66e78b96ff3b8b167f02aacbc7c0721b893611.tar.gz lz4-fe66e78b96ff3b8b167f02aacbc7c0721b893611.tar.bz2 |
lz4io: fixed minor ressource leak
Diffstat (limited to 'programs')
-rw-r--r-- | programs/lz4io.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/programs/lz4io.c b/programs/lz4io.c index 2cf0c1c..3502038 100644 --- a/programs/lz4io.c +++ b/programs/lz4io.c @@ -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; |