[opengm] 346/386: Tentative fix for a memory leak in fast_sequence.hxx.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Aug 31 08:38:30 UTC 2016


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

ghisvail-guest pushed a commit to branch debian/master
in repository opengm.

commit 3088f1bc376f88923cc2af327b6cf987a3e1d6ed
Author: Francesco Biscani <bluescarni at gmail.com>
Date:   Tue Mar 29 15:34:10 2016 +0200

    Tentative fix for a memory leak in fast_sequence.hxx.
---
 include/opengm/datastructures/fast_sequence.hxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/opengm/datastructures/fast_sequence.hxx b/include/opengm/datastructures/fast_sequence.hxx
index a423338..d5ada69 100644
--- a/include/opengm/datastructures/fast_sequence.hxx
+++ b/include/opengm/datastructures/fast_sequence.hxx
@@ -133,7 +133,7 @@ FastSequence<T, MAX_STACK>::FastSequence
 /// destructor
 template<class T, size_t MAX_STACK>
 FastSequence<T, MAX_STACK>::~FastSequence( ) {
-   if(size_>MAX_STACK) {
+   if(capacity_>MAX_STACK) {
       OPENGM_ASSERT(pointerToSequence_!=NULL);
       delete[] pointerToSequence_;
    }

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



More information about the debian-science-commits mailing list