mirror of https://github.com/CGAL/cgal
merge branch origin/Number_types-new_delete_mismatch-GF
Remove memory leaks detected by AddressSanitizer. Tested in CGAL-4.4-Ic-54 and CGAL-4.4-Ic-55. Approved by the release manager.
This commit is contained in:
commit
7b5a8a388d
|
|
@ -182,7 +182,7 @@ template <class T, class = void> struct pool3 {
|
||||||
// No caching
|
// No caching
|
||||||
template <class T, class = void> struct no_pool {
|
template <class T, class = void> struct no_pool {
|
||||||
static T pop() { throw "Shouldn't be here!"; }
|
static T pop() { throw "Shouldn't be here!"; }
|
||||||
static void push(T t) { delete (t - (extra+1)); }
|
static void push(T t) { delete [] (t - (extra+1)); }
|
||||||
static bool empty() { return true; }
|
static bool empty() { return true; }
|
||||||
static const int extra = 0;
|
static const int extra = 0;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue