Skip to content

Commit 2bfc2a8

Browse files
committed
#38936: coding style
1 parent 6471db6 commit 2bfc2a8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/sage/groups/perm_gps/partn_ref/data_structures.pyx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)