From: Mukund Sivaraman Date: Thu, 6 Jun 2013 22:45:21 +0000 (+0530) Subject: [2853] Acquire a ref on the ConfigurableClientList object when creating a ZoneWriter X-Git-Tag: bind10-1.2.0beta1-release~399^2~38 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=71eec22b3e41413651107079d9f9b5cf34d2c7ca;p=thirdparty%2Fkea.git [2853] Acquire a ref on the ConfigurableClientList object when creating a ZoneWriter This is so that the client list is kept alive as long as the ZoneWriter is. --- diff --git a/src/lib/python/isc/datasrc/configurableclientlist_python.cc b/src/lib/python/isc/datasrc/configurableclientlist_python.cc index 712b280c24..36b6cf972e 100644 --- a/src/lib/python/isc/datasrc/configurableclientlist_python.cc +++ b/src/lib/python/isc/datasrc/configurableclientlist_python.cc @@ -178,7 +178,7 @@ ConfigurableClientList_getCachedZoneWriter(PyObject* po_self, PyObject* args) { } else { // Make sure it keeps the writer alive. writer.reset(createZoneWriterObject(result.second, - NULL)); + po_self)); } return (Py_BuildValue("IO", result.first, writer.get()));