Browse Source

minor fixes

Stasik0 9 years ago
parent
commit
e718ca9f80
2 changed files with 2 additions and 3 deletions
  1. 0 1
      src/server/ua_securechannel_manager.c
  2. 2 2
      src/ua_types.c

+ 0 - 1
src/server/ua_securechannel_manager.c

@@ -39,7 +39,6 @@ void UA_SecureChannelManager_cleanupTimedOut(UA_SecureChannelManager *cm, UA_Dat
             entry = LIST_NEXT(entry, pointers);
         }
         else {
-            printf("kill\n");
             channel_list_entry *next = LIST_NEXT(entry, pointers);
             LIST_REMOVE(entry, pointers);
             UA_SecureChannel_deleteMembersCleanup(&entry->channel);

+ 2 - 2
src/ua_types.c

@@ -1216,9 +1216,9 @@ void* UA_Array_new(const UA_DataType *dataType, UA_Int32 noElements) {
         return UA_NULL;
 
     if(dataType->fixedSize)
-        return calloc(noElements, dataType->memSize);
+        return UA_calloc(noElements, dataType->memSize);
 
-    void *p = malloc(dataType->memSize * (size_t)noElements);
+    void *p = UA_malloc(dataType->memSize * (size_t)noElements);
     if(!p)
         return p;