Parcourir la source

Releasing node after getting it from the nodestore.

ichrispa il y a 10 ans
Parent
commit
70fc98b8ed
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      src/server/ua_subscription.c

+ 1 - 0
src/server/ua_subscription.c

@@ -416,6 +416,7 @@ void MonitoredItem_QueuePushDataValue(UA_Server *server, UA_MonitoredItem *monit
     return;
   if (target != monitoredItem->monitoredNode)
     monitoredItem->monitoredNode = target;
+  UA_NodeStore_release(target);
 #endif
   
   newvalue = (MonitoredItem_queuedValue *) UA_malloc(sizeof(MonitoredItem_queuedValue));