updates.
[silc.git] / lib / silcclient / protocol.c
index c50c2318c23e5959aaa76f9b8d776afcc5bd3638..d0734863b377f9bc9df1208c1d5c7016e27fce5b 100644 (file)
@@ -365,6 +365,8 @@ SILC_TASK_CALLBACK(silc_client_protocol_key_exchange)
                                       ctx->ske->prop->pkcs,
                                       ctx->ske->prop->hash);
 
+      silc_ske_free_key_material(keymat);
+
       /* Protocol has ended, call the final callback */
       if (protocol->final_callback)
        protocol->execute_final(client->timeout_queue, 0, protocol, fd);