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); }