Skip to contentSkip to conversation

rxrpc: Fix a memory leak in rxkad_verify_response()

PATCH Markus Elfring 1 participant 2 messages May 22, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw
Quoted 3 lines

In function rxkad_verify_response(), pointer "ticket" is not released, when function rxkad_decrypt_ticket() returns an error, causing a memory leak bug.

I suggest to improve also this change description. How do you think about a wording variant like the following?

A ticket was not released after a call of the function “platform_get_irq” failed. Thus replace the jump target “temporary_error_free_resp”
by “temporary_error_free_ticket”.

Regards,
Markus

#1 lore raw
Quoted 3 lines

How do you think about a wording variant like the following?

A ticket was not released after a call of the function “platform_get_irq” failed.

I should have specified an other function name here.

A ticket was not released after a call of the function “rxkad_decrypt_ticket” failed.

Regards,
Markus