Skip to content

Commit

Permalink
fix(test): free allocated memory
Browse files Browse the repository at this point in the history
  • Loading branch information
pmuller committed Jan 27, 2024
1 parent 3eeb703 commit e31638c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/RecordTest/RecordTest.ino
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ test(record_decode_long_text)
NdefRecord record;
// Check decoding
assertEqual(record.decode(encoded, 393), NDEF_SUCCESS);
free(encoded);
assertFalse(record.is_message_begin);
assertFalse(record.is_message_end);
assertEqual(record.get_type_name_format(), NdefRecord::TNF_WELL_KNOWN);
Expand Down

0 comments on commit e31638c

Please sign in to comment.