Skip to content

Commit

Permalink
Missing free.
Browse files Browse the repository at this point in the history
  • Loading branch information
katef committed Apr 21, 2023
1 parent dffa027 commit 4f99f44
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/retest/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,9 @@ process_test_file(const char *fname, enum re_dialect default_dialect, enum imple
#endif /* DEBUG_TEST_REGEXP */

ret = fsm_runner_initialize(fsm, &runner, impl, vm_opts);

fsm_free(fsm);

if (ret != ERROR_NONE) {
fprintf(stderr, "line %d: error compiling %s regexp /%s/%s: %s\n",
linenum, dialect_name, regexp, flagdesc, strerror(errno));
Expand All @@ -1061,8 +1064,6 @@ process_test_file(const char *fname, enum re_dialect default_dialect, enum imple
}

impl_ready = true;

fsm_free(fsm);
} else if (impl_ready) {
int matching;
char *orig;
Expand Down

0 comments on commit 4f99f44

Please sign in to comment.