]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libgomp/allocator.c
openmp: Fix up build if HAVE_SYNC_BUILTINS is not defined.
[thirdparty/gcc.git] / libgomp / allocator.c
index 66308ab666968b906427b9242fb44a6fec55e390..4e293992d226145d58e9e75c52875f6f566d6579 100644 (file)
@@ -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
        }