Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
serges147 committed Nov 14, 2024
1 parent 104798e commit e17c1f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcanard/canard.c
Original file line number Diff line number Diff line change
Expand Up @@ -1243,7 +1243,7 @@ int8_t canardRxUnsubscribe(CanardInstance* const ins,
{
if (sub->sessions[i] != NULL)
{
ins->memory_free(ins, sub->sessions[i]->payload, sub->sessions[i]->payload_size);
ins->memory_free(ins, sub->sessions[i]->payload, sub->extent);
}
ins->memory_free(ins, sub->sessions[i], sizeof(*sub->sessions[i]));
sub->sessions[i] = NULL;
Expand Down

0 comments on commit e17c1f6

Please sign in to comment.