commit | 5b41479aeb04f41e719c03e60c6d58e30b6ef878 | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Sat Oct 31 16:58:14 2020 -0700 |
committer | David Tolnay <dtolnay@gmail.com> | Sat Oct 31 16:58:14 2020 -0700 |
tree | fbc6063cfb75441381d7248a55389c2e81f16319 | |
parent | 504cf3cfb84c7df1e59544793113288add4ba36a [diff] |
Fix stray delete in Error move constructor
diff --git a/src/cxx.cc b/src/cxx.cc index d18bec9..43bf245 100644 --- a/src/cxx.cc +++ b/src/cxx.cc
@@ -180,7 +180,6 @@ } Error::Error(Error &&other) noexcept { - delete[] this->msg.ptr; this->msg = other.msg; other.msg.ptr = nullptr; other.msg.len = 0;