bugfix: free memory upon early exit from C subs-only functions
This commit is contained in:
parent
c7263944b3
commit
c91dba9485
|
@ -35,6 +35,7 @@ FUNCTION_NAME(PyObject *self, PyObject *args)
|
|||
PREPARE;
|
||||
|
||||
if (seq_len < subseq_len) {
|
||||
DO_FREES;
|
||||
RETURN_AT_END;
|
||||
}
|
||||
|
||||
|
|
|
@ -54,6 +54,7 @@ FUNCTION_NAME(PyObject *self, PyObject *args)
|
|||
PREPARE;
|
||||
|
||||
if (seq_len < subseq_len) {
|
||||
DO_FREES;
|
||||
RETURN_AT_END;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue