[SCM] an open source computer algebra system branch, cleanedupstream, updated. 6125e540ca6d66c307958938a9d53b245507c323

Bernhard R. Link brlink at debian.org
Tue Apr 24 15:53:53 UTC 2012


The following commit has been merged in the cleanedupstream branch:
commit ee05b639d6dac9000a97fbe690898e5f29abc336
Author: Burcin Erocal <burcin at erocal.org>
Date:   Tue Feb 28 16:31:31 2012 +0100

    Fix a memory leak in pmLastVblock().
    
    Thanks to Simon King for reporting.

diff --git a/kernel/shiftgb.cc b/kernel/shiftgb.cc
index d579aed..79083eb 100644
--- a/kernel/shiftgb.cc
+++ b/kernel/shiftgb.cc
@@ -255,9 +255,11 @@ int pmLastVblock(poly p, int lV)
 #ifdef PDEBUG
     PrintS("pmLastVblock: unexpected zero exponent vector\n");
 #endif
+    freeT(e, currRing->N);
     return(j);
   }
   b = (int)(j/lV) + 1; /* the number of the block, >=1 */
+  freeT(e, currRing->N);
   return (b);
 }
 

-- 
an open source computer algebra system



More information about the debian-science-commits mailing list