浏览代码

Releasing node after getting it from the nodestore.

ichrispa 10 年之前
父节点
当前提交
70fc98b8ed
共有 1 个文件被更改,包括 1 次插入0 次删除
  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));