]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2853] Acquire a ref on the ConfigurableClientList object when creating a ZoneWriter
authorMukund Sivaraman <muks@isc.org>
Thu, 6 Jun 2013 22:45:21 +0000 (04:15 +0530)
committerMukund Sivaraman <muks@isc.org>
Thu, 6 Jun 2013 22:46:41 +0000 (04:16 +0530)
This is so that the client list is kept alive as long as the ZoneWriter is.

src/lib/python/isc/datasrc/configurableclientlist_python.cc

index 712b280c24d304115b180ff8392e75a80f3985e8..36b6cf972ee7abc635e25ee6cab3de4d2d0720d7 100644 (file)
@@ -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()));