diff --git a/releasenotes.md b/releasenotes.md index 959b6187b..1e7935a66 100644 --- a/releasenotes.md +++ b/releasenotes.md @@ -130,6 +130,7 @@ - Bitstruct accidentally allowed other arrays than char arrays #2836 - Bitstruct as substruct fails to properly work with designated initializers. #2827 - Bug when initializing an inferred array with deep structure using designated init #2826 +- Packed .c3l files without compressions weren't unpacked correctly. ### Stdlib changes - Add `ThreadPool` join function to wait for all threads to finish in the pool without destroying the threads. diff --git a/src/utils/unzipper.c b/src/utils/unzipper.c index 4d9d95531..f3bf57f12 100644 --- a/src/utils/unzipper.c +++ b/src/utils/unzipper.c @@ -277,6 +277,7 @@ const char *zip_file_write(FILE *zip, ZipFile *file, const char *dir, bool overw } left_to_read -= written; } + fclose(f); return NULL; }