From b5c2ac4fd6b0b7e782af0332f4ca6e0feec48300 Mon Sep 17 00:00:00 2001 From: Zhang Xianyi Date: Mon, 29 Jul 2013 23:21:10 +0800 Subject: [PATCH] Fixed #264 the memory leak bug in dtrtri_U. --- interface/trtri.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/interface/trtri.c b/interface/trtri.c index 0564bc183..71680e87d 100644 --- a/interface/trtri.c +++ b/interface/trtri.c @@ -138,6 +138,9 @@ int NAME(char *UPLO, char *DIAG, blasint *N, FLOAT *a, blasint *ldA, blasint *In // call dtrtri from lapack for a walk around. if(uplo==0){ dtrtri_lapack_(UPLO, DIAG, N, a, ldA, Info); +#ifndef PPC440 + blas_memory_free(buffer); +#endif return 0; } #endif