> --
> You received this message because you are subscribed to the Google Groups
> "libsingular-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
libsingular-de...@googlegroups.com.
> To post to this group, send email to
libsingu...@googlegroups.com.
> Visit this group at
https://groups.google.com/group/libsingular-devel.
> For more options, visit
https://groups.google.com/d/optout.
Fixed with
https://github.com/Singular/Sources/commit/76a7291160a6ba0f7e662bf112de635f35663c1d
Calls to iiExprArith[1-3] shall provide pointers to the arguments (leftv).
For these arguments sleftv::CleanUp(currRing) is called - no need to do
it in Sage, but an additional CleanUp does not harm.
So the contents of these arguments are recycled,
but the memory blocks itself remain (because in Singular they are not
dynamic storage blocks but part of an array): omFree (or the
corresponding free-routine to the allocation) must be called.
For functions with a variable number of arguments (iiExprArithM) the
arguments are passed as a linked list and CleanUp recycles all content
and all memory blocks but the first - they must be allocted by routines
from omalloc.
Calling library function should be equivalent to iiExprArithM.
Hans