Browse Source

Fix memory leak

Credit to OSS-Fuzz
Stefan Profanter 7 years ago
parent
commit
5d5efc03d4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/ua_securechannel.c

+ 1 - 0
src/ua_securechannel.c

@@ -381,6 +381,7 @@ UA_SecureChannel_processChunks(UA_SecureChannel *channel, const UA_ByteString *c
             UA_UInt32 val = 0;
             callback(application, (UA_SecureChannel *)channel, (UA_MessageType)UA_MESSAGETYPE_ERR,
                      val, (const UA_ByteString*)&errorMessage);
+            UA_TcpErrorMessage_deleteMembers(&errorMessage);
             continue;
         }