fix minor mem leak in gpu code
@@ -146,6 +146,7 @@ void SCS(free_lin_sys_work)(ScsLinSysWork *p) {
}
cusparseDestroy(p->cusparse_handle);
cublasDestroy(p->cublas_handle);
+ cusparseDestroyMatDescr(p->descr);
/* Don't reset because it interferes with other GPU programs. */
/* cudaDeviceReset(); */
scs_free(p);
