[cpl] 01/01: Fix memory leak when cpl_matrix fails

Ole Streicher olebole-guest at moszumanska.debian.org
Sun Jul 6 14:00:02 UTC 2014


This is an automated email from the git hooks/post-receive script.

olebole-guest pushed a commit to branch debian
in repository cpl.

commit 019d791946c4b61f293212e9387fd09eb5fb0943
Author: Ole Streicher <debian at liska.ath.cx>
Date:   Sun Jul 6 15:22:51 2014 +0200

    Fix memory leak when cpl_matrix fails
---
 debian/changelog                       | 8 +++++++-
 debian/patches/fix-ftbs-mips64el.patch | 5 +++--
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 94ef03b..cb67be0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,12 @@
+cpl (6.4.2-5) unstable; urgency=medium
+
+  * Fix memory leak when cpl_matrix fails. Closes: #753089
+
+ -- Ole Streicher <debian at liska.ath.cx>  Sun, 06 Jul 2014 15:22:55 +0200
+
 cpl (6.4.2-4) unstable; urgency=medium
 
-  * Fix test failure  on mips64el. Closes: #753089
+  * Fix test failure  on mips64el.
 
  -- Ole Streicher <debian at liska.ath.cx>  Thu, 03 Jul 2014 18:28:14 +0200
 
diff --git a/debian/patches/fix-ftbs-mips64el.patch b/debian/patches/fix-ftbs-mips64el.patch
index 56d5f39..1fd33f0 100644
--- a/debian/patches/fix-ftbs-mips64el.patch
+++ b/debian/patches/fix-ftbs-mips64el.patch
@@ -21,7 +21,7 @@ Url: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=753089#10
    for (size = 1; size < nreps * nelem; size++) {
        cpl_matrix * p2;
        double error, residual;
-@@ -1595,6 +1598,12 @@
+@@ -1595,6 +1598,13 @@
        cpl_test_nonnull(product);
  
        xsolv = cpl_matrix_solve_normal(matrix, product);
@@ -29,12 +29,13 @@ Url: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=753089#10
 +          cpl_test_error(CPL_ERROR_SINGULAR_MATRIX);
 +          cpl_test_null(xsolv);
 +          did_fail = CPL_TRUE;
++          cpl_matrix_delete(product);
 +          break;
 +      }
        cpl_test_nonnull(xsolv);
  
        x_min = cpl_matrix_get_min(xsolv);
-@@ -1631,7 +1640,17 @@
+@@ -1631,7 +1641,17 @@
                         "x_min=%g, x_max=%g", size, x_min, x_max);
            break;
        }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/cpl.git



More information about the debian-science-commits mailing list