[Bf-blender-cvs] [64de6ad4fe4] master: Fix use-after-free in image code
Sergey Sharybin
noreply at git.blender.org
Mon Nov 1 15:36:30 CET 2021
Commit: 64de6ad4fe4ada417869c936106f184e455b848d
Author: Sergey Sharybin
Date: Mon Nov 1 15:36:09 2021 +0100
Branches: master
https://developer.blender.org/rB64de6ad4fe4ada417869c936106f184e455b848d
Fix use-after-free in image code
===================================================================
M source/blender/blenkernel/intern/image.c
===================================================================
diff --git a/source/blender/blenkernel/intern/image.c b/source/blender/blenkernel/intern/image.c
index cdc8b15f744..5d53fe3e5fe 100644
--- a/source/blender/blenkernel/intern/image.c
+++ b/source/blender/blenkernel/intern/image.c
@@ -5343,9 +5343,10 @@ void BKE_image_pool_free(ImagePool *pool)
BLI_mutex_unlock(&pool->mutex);
BLI_mempool_destroy(pool->memory_pool);
- MEM_freeN(pool);
BLI_mutex_end(&pool->mutex);
+
+ MEM_freeN(pool);
}
BLI_INLINE ImBuf *image_pool_find_item(
More information about the Bf-blender-cvs
mailing list