Browse Source

[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.
Mukund Sivaraman 12 years ago
parent
commit
71eec22b3e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/python/isc/datasrc/configurableclientlist_python.cc

+ 1 - 1
src/lib/python/isc/datasrc/configurableclientlist_python.cc

@@ -178,7 +178,7 @@ ConfigurableClientList_getCachedZoneWriter(PyObject* po_self, PyObject* args) {
             } else {
             } else {
                 // Make sure it keeps the writer alive.
                 // Make sure it keeps the writer alive.
                 writer.reset(createZoneWriterObject(result.second,
                 writer.reset(createZoneWriterObject(result.second,
-                                                    NULL));
+                                                    po_self));
             }
             }
 
 
             return (Py_BuildValue("IO", result.first, writer.get()));
             return (Py_BuildValue("IO", result.first, writer.get()));