Browse Source

removing amemory issue, @jpfr, would you review please?

Stasik0 10 years ago
parent
commit
7ed0e0436e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/server/ua_services_view.c

+ 1 - 1
src/server/ua_services_view.c

@@ -267,7 +267,7 @@ static void browse(UA_NodeStore *ns, struct ContinuationPointEntry **cp, const U
 
 cleanup:
     UA_NodeStore_release(node);
-    if(!all_refs && descr->includeSubtypes)
+    if(!all_refs && *cp && descr->includeSubtypes)
         UA_Array_delete(relevant_refs, &UA_TYPES[UA_TYPES_NODEID], relevant_refs_size);
 }