Skip to content

Commit

Permalink
Merge pull request #16 from Teemperor/FixMemoryLeakhid_parse_report_d…
Browse files Browse the repository at this point in the history
…escriptor

Fix memory leak in hid_parse_report_descriptor
  • Loading branch information
joshpar authored Sep 20, 2022
2 parents 6b0b4dd + d5a90f4 commit 7affd87
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hidapi_parser/hidapi_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,8 @@ int hid_parse_report_descriptor( unsigned char* descr_buf, int size, struct hid_
printf("----------- end setting report ids --------------\n " );
#endif

hid_free_collection(device_collection);

return 0;
}

Expand Down

0 comments on commit 7affd87

Please sign in to comment.