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:
-rw-r--r--intern/guardedalloc/intern/mallocn.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/intern/guardedalloc/intern/mallocn.c b/intern/guardedalloc/intern/mallocn.c
index 15236a2bee4..342852c4f76 100644
--- a/intern/guardedalloc/intern/mallocn.c
+++ b/intern/guardedalloc/intern/mallocn.c
@@ -539,8 +539,10 @@ short MEM_testN(void *vmemh) {
if (membl) membl = MEMNEXT(membl);
while(membl) {
- if (vmemh == membl+1)
+ if (vmemh == membl+1) {
+ mem_unlock_thread();
return 1;
+ }
if(membl->next)
membl= MEMNEXT(membl->next);