Skip to content

Commit

Permalink
Merge pull request #16 from TinyRaft/master
Browse files Browse the repository at this point in the history
Fix memery leak
  • Loading branch information
abobija authored Mar 20, 2023
2 parents 488350e + 98f162a commit adced10
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rc522.c
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,8 @@ static void rc522_task(void* arg)
free(serial_no_array);
rc522_dispatch_event(rc522, RC522_EVENT_TAG_SCANNED, &tag);
rc522->tag_was_present_last_time = true;
} else {
free(serial_no_array);
}

int delay_interval_ms = rc522->config->scan_interval_ms;
Expand Down

0 comments on commit adced10

Please sign in to comment.