From 98ba8385dd258d92406568cd2d71c537e07eef38 Mon Sep 17 00:00:00 2001
From: Mathieu Faverge <mathieu.faverge@inria.fr>
Date: Tue, 30 Jan 2018 18:16:32 +0100
Subject: [PATCH] Fix case in workspace

---
 testing/testing_zpotri.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/testing/testing_zpotri.c b/testing/testing_zpotri.c
index 6b5b1beeb..b64875713 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;
     }
-- 
GitLab