Browse Source

use connection->releaseSendBuffer everywhere

Julius Pfrommer 6 years ago
parent
commit
6f689994e1
1 changed files with 2 additions and 1 deletions
  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