aboutsummaryrefslogtreecommitdiff
path: root/libgomp/allocator.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgomp/allocator.c')
-rw-r--r--libgomp/allocator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgomp/allocator.c b/libgomp/allocator.c
index 66308ab..4e29399 100644
--- a/libgomp/allocator.c
+++ b/libgomp/allocator.c
@@ -348,7 +348,7 @@ omp_free (void *ptr, omp_allocator_handle_t allocator)
MEMMODEL_RELAXED);
#else
gomp_mutex_lock (&allocator_data->lock);
- allocator_data->used_pool_size -= data->new_size;
+ allocator_data->used_pool_size -= data->size;
gomp_mutex_unlock (&allocator_data->lock);
#endif
}