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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-12-28 17:00:25 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-12-28 17:01:20 +0300
commit61d6fa92c5c91b1a7ed86d942b3b8e5f09fa4106 (patch)
tree5712a686cc7024ef9783318ce6d7014df89923ab /source
parent0ae2ade17a2820f5c5a3f5c41933e3c46875efcd (diff)
Correct recent error passing NULL to fclose
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenlib/intern/storage.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source/blender/blenlib/intern/storage.c b/source/blender/blenlib/intern/storage.c
index 91df103bc7b..260a23c41dc 100644
--- a/source/blender/blenlib/intern/storage.c
+++ b/source/blender/blenlib/intern/storage.c
@@ -320,10 +320,11 @@ void *BLI_file_read_text_as_mem(const char *filepath, size_t pad_bytes, size_t *
}
*r_size = filelen_read;
- }
finally:
- fclose(fp);
+ fclose(fp);
+ }
+
return mem;
}
@@ -353,10 +354,11 @@ void *BLI_file_read_binary_as_mem(const char *filepath, size_t pad_bytes, size_t
}
*r_size = filelen_read;
- }
finally:
- fclose(fp);
+ fclose(fp);
+ }
+
return mem;
}