Skip to content

Commit

Permalink
Fix memery leak
Browse files Browse the repository at this point in the history
  • Loading branch information
huhaifan committed Mar 20, 2023
1 parent 488350e commit 98f162a
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 98f162a

Please sign in to comment.