From 47a43d4f60316ed5ea2a511d2b03caa518dd0ab5 Mon Sep 17 00:00:00 2001 From: Jacob Hayes Date: Fri, 14 Oct 2022 01:53:29 -0400 Subject: [PATCH] Fix compilation on newer gcc versions --- src/ivar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ivar.cpp b/src/ivar.cpp index 839c1aa4..52778277 100755 --- a/src/ivar.cpp +++ b/src/ivar.cpp @@ -499,7 +499,7 @@ int main(int argc, char* argv[]){ for (int i = 0; i < nfiles; ++i) { free(files[i]); } - free(files); + delete[] files; } else { res = common_variants(g_args.prefix, g_args.min_threshold, argv + optind, argc - optind); }