Commit c87351ce authored by Giovanni La Mura's avatar Giovanni La Mura
Browse files

Fix leak on dwork GPU allocation

parent 18e399ca
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -53,6 +53,7 @@ void magma_zinvert(dcomplex **mat, np_int n, int &jer, int device_id) {
  magma_zgetmatrix(m, m, d_a , m, a, m, queue); // copy d_a -> a
  delete[] piv; // free host memory
  magma_free(d_a); // free device memory
  magma_free(dwork);
  magma_queue_destroy(queue); // destroy queue
  // result = magma_finalize();
  jer = (int)err;