Skip to content

Commit

Permalink
Free up memory from OP.parent
Browse files Browse the repository at this point in the history
  • Loading branch information
thecaligarmo committed Sep 24, 2024
1 parent 5ff7cac commit 598ccfd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sage/groups/perm_gps/partn_ref/data_structures.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ from libc.string cimport memcpy
from libc.stdlib cimport rand
from sage.libs.gmp.mpz cimport *

from cysignals.memory cimport sig_free


cdef enum:
# The following is for the automorphism group computation, says what the
Expand Down Expand Up @@ -162,6 +164,8 @@ cdef inline void OP_make_set(OrbitPartition *OP) noexcept:
new_mcr[n] = n
new_size[n] = 1

sig_free(OP.parent)

OP.parent = new_parent
OP.rank = new_rank
OP.mcr = new_mcr
Expand Down

0 comments on commit 598ccfd

Please sign in to comment.