Skip to content

Commit

Permalink
Also free newwdata when SUPPORT_JIT is not enabled (#424)
Browse files Browse the repository at this point in the history
  • Loading branch information
seppide committed Jun 12, 2024
1 parent 430237f commit a809205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pcre2_fuzzsupport.c
Original file line number Diff line number Diff line change
Expand Up @@ -700,8 +700,8 @@ with the interpreter. */
if (match_data != NULL) pcre2_match_data_free(match_data);
#ifdef SUPPORT_JIT
if (match_data_jit != NULL) pcre2_match_data_free(match_data_jit);
free(newwdata);
#endif
free(newwdata);
if (match_context != NULL) pcre2_match_context_free(match_context);
if (compile_context != NULL) pcre2_compile_context_free(compile_context);
return 0;
Expand Down

0 comments on commit a809205

Please sign in to comment.