瀏覽代碼

use connection->releaseSendBuffer everywhere

Julius Pfrommer 6 年之前
父節點
當前提交
6f689994e1
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/ua_securechannel.c

+ 2 - 1
src/ua_securechannel.c

@@ -664,7 +664,8 @@ UA_MessageContext_finish(UA_MessageContext *mc) {
 
 void
 UA_MessageContext_abort(UA_MessageContext *mc) {
-    UA_ByteString_deleteMembers(&mc->messageBuffer);
+    UA_Connection *connection = mc->channel->connection;
+    connection->releaseSendBuffer(connection, &mc->messageBuffer);
 }
 
 UA_StatusCode