#13731: Fix libsingular memory management
--------------------------------------------------------------+-------------
Reporter: nbruin | Owner:
rlm
Type: defect | Status:
new
Priority: major | Milestone:
sage-5.6
Component: memleak | Resolution:
Keywords: | Work issues:
Report Upstream: Fixed upstream, in a later stable release. | Reviewers:
Authors: Nils Bruin, Simon King | Merged in:
Dependencies: | Stopgaps:
--------------------------------------------------------------+-------------
Comment (by SimonKing):
Replying to [comment:97 nbruin]:
> NO!! It's much easier. Hannes is right: just store bin->sizeB directly
in the bin. Then
> {{{
> #define omTypeAllocBin(T,P,B) P=(T)omAlloc(B)
> }}}
> is the correct description, since the bin now simply IS the size_t.
Sorry, I don't get that.
{{{
typedef size_t omBin;
static inline omBin omGetSpecBin(size_t S)
{ return (omBin)sizeof(omBin_t);
}
}}}
or what?
And remove `omUnGetSpecBin`?
And then
{{{
#define omTypeAllocBin(T,P,B) P=(T)omAlloc(B)
}}}
?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13731#comment:98>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.