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:
Diffstat (limited to 'source/blender/blenlib/intern/BLI_memarena.c')
-rw-r--r--source/blender/blenlib/intern/BLI_memarena.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/BLI_memarena.c b/source/blender/blenlib/intern/BLI_memarena.c
index b5815f7b503..0f7ac92a348 100644
--- a/source/blender/blenlib/intern/BLI_memarena.c
+++ b/source/blender/blenlib/intern/BLI_memarena.c
@@ -77,6 +77,10 @@ static void memarena_buf_free_all(struct MemBuf *mb)
{
while (mb != NULL) {
struct MemBuf *mb_next = mb->next;
+
+ /* Unpoison memory because MEM_freeN might overwrite it. */
+ ASAN_UNPOISON_MEMORY_REGION(mb, (uint)MEM_allocN_len(mb));
+
MEM_freeN(mb);
mb = mb_next;
}