From 4c2885a363cef47ab8591686da9cb289f6787af9 Mon Sep 17 00:00:00 2001 From: kanamori Date: Thu, 16 Nov 2017 12:28:10 +0900 Subject: [PATCH] fix unthread safe memory allocation --- src/setup_generic.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/setup_generic.c b/src/setup_generic.c index a600454..8b409ed 100644 --- a/src/setup_generic.c +++ b/src/setup_generic.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016, Matthias Rottmann, Artur Strebel, Simon Heybrock, Simone Bacchio, Bjoern Leder, Issaku Kanamori. + * Copyright (C) 2017, Matthias Rottmann, Artur Strebel, Simon Heybrock, Simone Bacchio, Bjoern Leder, Issaku Kanamori. * * This file is part of the DDalphaAMG solver library. * @@ -198,7 +198,7 @@ void interpolation_PRECISION_define( vector_double *V, level_struct *l, struct T if ( V == NULL ) { - PUBLIC_MALLOC( buffer, complex_PRECISION*, 3 ); + MALLOC( buffer, complex_PRECISION*, 3 ); buffer[0] = NULL; PUBLIC_MALLOC( buffer[0], complex_PRECISION, l->vector_size*3 ); @@ -234,7 +234,7 @@ void interpolation_PRECISION_define( vector_double *V, level_struct *l, struct T } PUBLIC_FREE( buffer[0], complex_PRECISION, l->vector_size*3 ); - PUBLIC_FREE( buffer, complex_PRECISION*, 3 ); + FREE( buffer, complex_PRECISION*, 3 ); for ( k=0; kis_PRECISION.test_vector[k], l->is_PRECISION.test_vector[k],