Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSv. Lockal <lockalsash@gmail.com>2012-10-07 19:39:47 +0400
committerSv. Lockal <lockalsash@gmail.com>2012-10-07 19:39:47 +0400
commitc80c4c896aedae7c711d10e6f133d3bdca460de3 (patch)
tree0606dc6864d9431fc35287e4296dd05393adc639 /source/blender/blenlib/intern/fileops.c
parente3ab85a3f589fd6d649caf8fbe71ea70e0a217de (diff)
Fix file descriptor leak in BLI_file_ungzip_to_mem and small memleak in wm_window_title.
Diffstat (limited to 'source/blender/blenlib/intern/fileops.c')
-rw-r--r--source/blender/blenlib/intern/fileops.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/fileops.c b/source/blender/blenlib/intern/fileops.c
index 1df904f617a..883cdfde426 100644
--- a/source/blender/blenlib/intern/fileops.c
+++ b/source/blender/blenlib/intern/fileops.c
@@ -140,6 +140,8 @@ char *BLI_file_ungzip_to_mem(const char *from_file, int *size_r)
}
else break;
}
+
+ gzclose(gzfile);
if (size == 0) {
MEM_freeN(mem);