Skip to content

Commit

Permalink
Fix mismatched new[],delete
Browse files Browse the repository at this point in the history
  • Loading branch information
milot-mirdita committed Aug 2, 2024
1 parent 48f13f9 commit ffb0561
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commons/Parameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1870,7 +1870,7 @@ void Parameters::parseParameters(int argc, const char *pargv[], const Command &c
EXIT(EXIT_FAILURE);
}
filenames.emplace_back(posix);
delete posix;
delete[] posix;
}
#else
filenames.emplace_back(pargv[argIdx]);
Expand Down

0 comments on commit ffb0561

Please sign in to comment.