From 12eeff0dec48784ea551c37d8d9d833d24db4a31 Mon Sep 17 00:00:00 2001 From: rdb Date: Thu, 7 Mar 2019 17:33:21 +0100 Subject: [PATCH] py_panda: fix memory leak accessing map/seq properties --- dtool/src/interrogatedb/py_wrappers.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/dtool/src/interrogatedb/py_wrappers.cxx b/dtool/src/interrogatedb/py_wrappers.cxx index e004246249..9f463c9f92 100644 --- a/dtool/src/interrogatedb/py_wrappers.cxx +++ b/dtool/src/interrogatedb/py_wrappers.cxx @@ -47,6 +47,7 @@ static void Dtool_WrapperBase_dealloc(PyObject *self) { Dtool_WrapperBase *wrap = (Dtool_WrapperBase *)self; nassertv(wrap); Py_XDECREF(wrap->_self); + Py_TYPE(self)->tp_free(self); } static PyObject *Dtool_WrapperBase_repr(PyObject *self) {