commit | b0356f407520d36d435c1f6b5eff154732d3993a | [log] [tgz] |
---|---|---|
author | aPiecek <piecek@cesnet.cz> | Thu Jun 22 10:13:38 2023 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Tue Jul 04 14:31:45 2023 +0200 |
tree | 8d2274311c14751e2884ef9acacf316af51cd042 | |
parent | b2b51369d023d17d6703b70df8bd4f9a3fb7825f [diff] [blame] |
yangre BUGFIX trying to free a global variable
diff --git a/tools/re/main.c b/tools/re/main.c index 9fb1d01..12b5fdf 100644 --- a/tools/re/main.c +++ b/tools/re/main.c
@@ -315,7 +315,9 @@ } free(patterns); free(invert_match); - free(modstr); + if (modstr != module_start) { + free(modstr); + } if (infile) { fclose(infile); free(str);