diff --git a/testing/testing_zpotri.c b/testing/testing_zpotri.c index 6b5b1beeb58c4ab4ea034e580aef4ceb555c10dc..b6487571316454a6c4852748e32093ea43e15a35 100644 --- a/testing/testing_zpotri.c +++ b/testing/testing_zpotri.c @@ -199,10 +199,10 @@ int testing_zpotri(int argc, char **argv) MORSE_Complex64_t *WORK = (MORSE_Complex64_t *)malloc(2*LDA*sizeof(MORSE_Complex64_t)); /* Check if unable to allocate memory */ - if ( (!A1) || (!A2) || (!work) ) + if ( (!A1) || (!A2) || (!WORK) ) { free(A1); free(A2); - free(work); + free(WORK); printf("Out of Memory \n "); return -2; }