浏览代码

Perform system allocator's mutex unlock anyways

Ioannis Koutras 13 年之前
父节点
当前提交
7396f063eb
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/dmmlib.c

+ 1 - 0
src/dmmlib.c

@@ -143,6 +143,7 @@ void * malloc(size_t size) {
             pthread_mutex_unlock(&new_raw_block->mutex);
 #endif /* HAVE_LOCKS */
         }
+        pthread_mutex_unlock(&systemallocator.creation_mutex);
     }
     
     return ptr;