COMPMID-959: Manage memory on pure GEMM

Change-Id: I30e605db5e54266c6af70ac9fe602437966d9c73
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/125107
Tested-by: Jenkins <bsgcomp@arm.com>
Reviewed-by: Gian Marco Iodice <gianmarco.iodice@arm.com>
diff --git a/src/runtime/CL/functions/CLGEMM.cpp b/src/runtime/CL/functions/CLGEMM.cpp
index c1926a7..a06d94c 100644
--- a/src/runtime/CL/functions/CLGEMM.cpp
+++ b/src/runtime/CL/functions/CLGEMM.cpp
@@ -138,7 +138,7 @@
 
         // Manage intermediate buffers
         _memory_group.manage(&_tmp_a);
-        if(_reshape_b_only_on_first_run)
+        if(!_reshape_b_only_on_first_run)
         {
             _memory_group.manage(&_tmp_b);
         }