diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2019-09-04 12:51:02 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-04 12:51:02 -0500 |
commit | 054ed31cd3ff5a24322c465189879374dee0b1ca (patch) | |
tree | 5ca8fb44dcd725fde577b088ed45adfe3dbc1b7d /src/base | |
parent | ad521125586f437693410dd78275044d0174a927 (diff) |
Fixes related to destructing null (#3231)
Diffstat (limited to 'src/base')
-rw-r--r-- | src/base/exception.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/base/exception.cpp b/src/base/exception.cpp index c1c174d1d..44d9b10bc 100644 --- a/src/base/exception.cpp +++ b/src/base/exception.cpp @@ -65,9 +65,7 @@ std::string IllegalArgumentException::formatVariadic(const char* format, ...) { for (int i = 0; i < 2; ++i){ Assert(n > 0); - if(buf != NULL){ - delete [] buf; - } + delete[] buf; buf = new char[n]; va_list args_copy; |