We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04df568 commit ef5644eCopy full SHA for ef5644e
diff.c
@@ -912,7 +912,10 @@ static void free_diff_words_data(struct emit_callback *ecbdata)
912
free (ecbdata->diff_words->minus.orig);
913
free (ecbdata->diff_words->plus.text.ptr);
914
free (ecbdata->diff_words->plus.orig);
915
- free(ecbdata->diff_words->word_regex);
+ if (ecbdata->diff_words->word_regex) {
916
+ regfree(ecbdata->diff_words->word_regex);
917
+ free(ecbdata->diff_words->word_regex);
918
+ }
919
free(ecbdata->diff_words);
920
ecbdata->diff_words = NULL;
921
}
0 commit comments