mirror of
https://github.com/eclipse/wakaama.git
synced 2025-05-08 23:31:37 +08:00
Fix memory leak when registration fails
registration_data_t is not freed if the server does not respond to the connection message or the user decides to quit the (Wakaama) client before the server respond. This fixes #693.
This commit is contained in:
parent
f4bf6394fe
commit
4fcb0b55dc
@ -173,6 +173,9 @@ void prv_deleteTransactionList(lwm2m_context_t * context)
|
||||
|
||||
transaction = context->transactionList;
|
||||
context->transactionList = context->transactionList->next;
|
||||
if (transaction->callback) {
|
||||
transaction->callback(context, transaction, NULL);
|
||||
}
|
||||
transaction_free(transaction);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user