From 9783806ee1ace5b441b0acb60f75a6e830ab0a3e Mon Sep 17 00:00:00 2001 From: Robert Haschke Date: Thu, 10 Dec 2020 17:34:57 +0100 Subject: [PATCH] Remove redundant instance->owned = true which was just before set to True in instance->allocate_layout() --- include/pybind11/detail/class.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/pybind11/detail/class.h b/include/pybind11/detail/class.h index 65dad5a57e..7fd74d42a9 100644 --- a/include/pybind11/detail/class.h +++ b/include/pybind11/detail/class.h @@ -340,8 +340,6 @@ inline PyObject *make_new_instance(PyTypeObject *type) { // Allocate the value/holder internals: inst->allocate_layout(); - inst->owned = true; - return self; }