Remove NameServer instance from module list in NameServer_delete()
[ipc/ipcdev.git] / linux / src / daemon / NameServer_daemon.c
index 6ec0d8182deea1798559d9268b68259461cc54d1..279bf3604b4c20d0b7cfefe492cd6397f98a047c 100644 (file)
@@ -683,6 +683,9 @@ Int NameServer_delete(NameServer_Handle *handle)
     /* destroy the mutex */
     pthread_mutex_destroy(&obj->gate);
 
     /* destroy the mutex */
     pthread_mutex_destroy(&obj->gate);
 
+    /* remove from objList */
+    CIRCLEQ_REMOVE(&NameServer_module->objList, obj, elem);
+
     /* finally, free the instance object */
     free(obj);
 
     /* finally, free the instance object */
     free(obj);