summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2011-05-16 15:10:28 +0200
committerDavid Tardon <dtardon@redhat.com>2011-05-16 15:10:28 +0200
commit717548874c0a4e4bfcedf9896ea2fabc56a7b483 (patch)
treed70971f5f7ed75656b5cdce8abfc238538f174c5 /hwpfilter
parent2108d136b976342505e64f46d0b7a4ccf68b7299 (diff)
do not leak memory
Diffstat (limited to 'hwpfilter')
-rw-r--r--hwpfilter/source/solver.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/hwpfilter/source/solver.cpp b/hwpfilter/source/solver.cpp
index caad95701b80..9748769b5d24 100644
--- a/hwpfilter/source/solver.cpp
+++ b/hwpfilter/source/solver.cpp
@@ -43,6 +43,7 @@ double** mgcLinearSystemD::NewMatrix (int N)
{
for (int i = 0; i < row; i++)
delete[] A[i];
+ delete[] A;
return 0;
}
for (int col = 0; col < N; col++)