Skip to content

Commit

Permalink
free memory fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason-Lee0 committed Oct 26, 2023
1 parent 6b5040c commit 2fcd557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/x86/x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ mraa_x86_platform()

if (file_hold != NULL) {
if (getline(&line, &len, file_hold) != -1) {

line[strcspn(line, "\r\n")] = 0;
if (strncmp(line, "ROScube-I", strlen("ROScube-I")) == 0 ) {
// includes ROScube-I, ROScube-I ET
platform_type = MRAA_ADLINK_ROSCUBE_I;
Expand Down

0 comments on commit 2fcd557

Please sign in to comment.