ソースを参照

Only release node if not NULL

Stefan Profanter 7 年 前
コミット
0f069c58a4
共有1 個のファイルを変更した2 個の追加0 個の削除を含む
  1. 2 0
      plugins/ua_nodestore_default.c

+ 2 - 0
plugins/ua_nodestore_default.c

@@ -258,6 +258,8 @@ UA_NodeMap_getNode(void *context, const UA_NodeId *nodeid) {
 
 static void
 UA_NodeMap_releaseNode(void *context, const UA_Node *node) {
+    if (!node)
+        return;
 #ifdef UA_ENABLE_MULTITHREADING
     UA_NodeMap *ns = (UA_NodeMap*)context;
 #endif