Merge branch 'pybind:master' into master

This commit is contained in:
Steve R. Sun 2022-04-27 07:38:19 +08:00 committed by GitHub
commit c8d52c4e3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -312,6 +312,10 @@ protected:
// along the way.
class strdup_guard {
public:
strdup_guard() = default;
strdup_guard(const strdup_guard &) = delete;
strdup_guard &operator=(const strdup_guard &) = delete;
~strdup_guard() {
for (auto *s : strings) {
std::free(s);