We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Look at
cdef int allocate_c_vector_modint(c_vector_modint* v, Py_ssize_t num_nonzero) except -1: """ Allocate memory for a c_vector_modint -- most user code won't call this. """ v.entries = <int*>sage_malloc(num_nonzero*sizeof(int)) if v.entries == NULL: raise MemoryError, "Error allocating memory" v.positions = <Py_ssize_t*>sage_malloc(num_nonzero*sizeof(Py_ssize_t)) if v.positions == NULL: raise MemoryError, "Error allocating memory" return 0
When the allocation for positions fails we will leak entries.
Cheers,
Michael
Component: memleak
Issue created by migration from https://trac.sagemath.org/ticket/4961
The text was updated successfully, but these errors were encountered:
Attachment: trac-4961.patch.gz
Sorry, something went wrong.
Positive review.
Merged in Sage 3.3.alpha2
craigcitro
No branches or pull requests
Look at
When the allocation for positions fails we will leak entries.
Cheers,
Michael
Component: memleak
Issue created by migration from https://trac.sagemath.org/ticket/4961
The text was updated successfully, but these errors were encountered: