瀏覽代碼

fixes #321, thanks @martina-felber

Stasik0 9 年之前
父節點
當前提交
d8862f17b2
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/ua_connection.c

+ 3 - 0
src/ua_connection.c

@@ -24,6 +24,9 @@ void UA_Connection_init(UA_Connection *connection) {
 }
 }
 
 
 void UA_Connection_deleteMembers(UA_Connection *connection) {
 void UA_Connection_deleteMembers(UA_Connection *connection) {
+#ifndef UA_MULTITHREADING
+    UA_ByteString_delete((UA_ByteString*)connection->handle);
+#endif
     UA_ByteString_deleteMembers(&connection->incompleteMessage);
     UA_ByteString_deleteMembers(&connection->incompleteMessage);
 }
 }