File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/sage/groups/perm_gps/partn_ref Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,6 @@ cdef inline OrbitPartition *OP_new(int n) noexcept:
4747 cdef OrbitPartition * OP = < OrbitPartition * > \
4848 sig_malloc(sizeof(OrbitPartition))
4949 if OP is NULL :
50- sig_free(OP)
5150 return NULL
5251 OP.parent = < int * > sig_malloc(n * sizeof(int ))
5352 OP.rank = < int * > sig_malloc(n * sizeof(int ))
@@ -94,8 +93,8 @@ cdef inline void OP_make_set(OrbitPartition *OP) noexcept:
9493 cdef int n = OP.degree
9594
9695 OP.parent = < int * > sig_realloc(OP.parent, (n + 1 ) * sizeof(int ))
97- OP.rank = < int * > sig_realloc(OP.rank,(n + 1 ) * sizeof(int ))
98- OP.mcr = < int * > sig_realloc(OP.mcr,(n + 1 ) * sizeof(int ))
96+ OP.rank = < int * > sig_realloc(OP.rank, (n + 1 ) * sizeof(int ))
97+ OP.mcr = < int * > sig_realloc(OP.mcr, (n + 1 ) * sizeof(int ))
9998 OP.size = < int * > sig_realloc(OP.size, (n + 1 ) * sizeof(int ))
10099 if OP.parent is NULL or OP.rank is NULL or OP.mcr is NULL or OP.size is NULL :
101100 sig_free(OP.parent)
You can’t perform that action at this time.
0 commit comments