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:
authorBastien Montagne <montagne29@wanadoo.fr>2016-08-16 17:15:55 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2016-08-16 17:16:22 +0300
commit64a6a86d57ee0c8810b7738bc42950c336d82952 (patch)
tree51ca6ceb4d6c690727348c40a9f505f6d62e2d13 /source/blender/alembic
parentae475e355488db27c4b9fcc33385080578403833 (diff)
Fix two memleaks found by coverity.
Diffstat (limited to 'source/blender/alembic')
-rw-r--r--source/blender/alembic/intern/alembic_capi.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/alembic/intern/alembic_capi.cc b/source/blender/alembic/intern/alembic_capi.cc
index 0e96ac22e11..f9364d55753 100644
--- a/source/blender/alembic/intern/alembic_capi.cc
+++ b/source/blender/alembic/intern/alembic_capi.cc
@@ -585,6 +585,9 @@ static void import_startjob(void *user_data, short *stop, short *do_update, floa
IArchive *archive = open_archive(data->filename);
if (!archive || !archive->valid()) {
+ if (archive) {
+ delete archive;
+ }
data->error_code = ABC_ARCHIVE_FAIL;
return;
}