Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Mein <mein@cs.umn.edu>2006-10-27 19:00:31 +0400
committerKent Mein <mein@cs.umn.edu>2006-10-27 19:00:31 +0400
commit4657db2a38550a46dbd5028ad283f399de6adf0e (patch)
tree26bb0c4fcc403d9a717699ab89e36f915b8882b6 /intern/opennl
parent45c1f23f19169a4bc2640db3fd2d7b67386609dc (diff)
More bugs found thanks to klockwork
mallocn.c check malloced memory before using it. ssp_blas2.c free memory that wasn't but should have been. Kent
Diffstat (limited to 'intern/opennl')
-rw-r--r--intern/opennl/superlu/ssp_blas2.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/intern/opennl/superlu/ssp_blas2.c b/intern/opennl/superlu/ssp_blas2.c
index 347f9ab5fd4..e9f8f53128a 100644
--- a/intern/opennl/superlu/ssp_blas2.c
+++ b/intern/opennl/superlu/ssp_blas2.c
@@ -119,7 +119,10 @@ sp_strsv(char *uplo, char *trans, char *diag, SuperMatrix *L,
if ( lsame_(uplo, "L") ) {
/* Form x := inv(L)*x */
- if ( L->nrow == 0 ) return 0; /* Quick return */
+ if ( L->nrow == 0 ) {
+ SUPERLU_FREE(work);
+ return 0; /* Quick return */
+ }
for (k = 0; k <= Lstore->nsuper; k++) {
fsupc = L_FST_SUPC(k);