Commit 98ba8385 authored by Mathieu Faverge's avatar Mathieu Faverge

Fix case in workspace

parent d37a07fe
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment