bugfix: free memory upon early exit from C subs-only functions

This commit is contained in:
Tal Einat 2014-06-04 04:25:12 +03:00
parent c7263944b3
commit c91dba9485
2 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,7 @@ FUNCTION_NAME(PyObject *self, PyObject *args)
PREPARE;
if (seq_len < subseq_len) {
DO_FREES;
RETURN_AT_END;
}

View File

@ -54,6 +54,7 @@ FUNCTION_NAME(PyObject *self, PyObject *args)
PREPARE;
if (seq_len < subseq_len) {
DO_FREES;
RETURN_AT_END;
}