Explorar o código

removing a possible memleak, relates to #481

Stasik0 %!s(int64=9) %!d(string=hai) anos
pai
achega
6f9514e361
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  1. 0 1
      src/client/ua_client.c

+ 0 - 1
src/client/ua_client.c

@@ -204,7 +204,6 @@ static UA_StatusCode SecureChannelHandshake(UA_Client *client, UA_Boolean renew)
         UA_LOG_DEBUG(client->logger, UA_LOGCATEGORY_SECURECHANNEL, "Requesting to open a SecureChannel");
     }
 
-    UA_ByteString_init(&client->channel.clientNonce);
     UA_ByteString_copy(&client->channel.clientNonce, &opnSecRq.clientNonce);
     opnSecRq.securityMode = UA_MESSAGESECURITYMODE_NONE;