projects
/
scilab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
6c538e8
)
Memory Leaks detected by cppcheck #19
66/19866/3
Nimish Kapoor [Wed, 14 Mar 2018 16:16:54 +0000 (21:16 +0530)]
Change-Id: Iac0c0e021bdcd40ba9a781203f22bb547d7850c6
scilab/modules/linear_algebra/sci_gateway/cpp/sci_det.cpp
patch
|
blob
|
history
diff --git
a/scilab/modules/linear_algebra/sci_gateway/cpp/sci_det.cpp
b/scilab/modules/linear_algebra/sci_gateway/cpp/sci_det.cpp
index
c7016e1
..
45e1cfb
100644
(file)
--- a/
scilab/modules/linear_algebra/sci_gateway/cpp/sci_det.cpp
+++ b/
scilab/modules/linear_algebra/sci_gateway/cpp/sci_det.cpp
@@
-93,6
+93,11
@@
types::Function::ReturnValue sci_det(types::typed_list &in, int _iRetCount, type
if (iRet < 0)
{
Scierror(999, _("%s: LAPACK error n°%d.\n"), "det", iRet);
+ pDblMantissa->killMe();
+ if( pDblExponent )
+ {
+ pDblExponent->killMe();
+ }
return types::Function::Error;
}