Skip to content

Commit

Permalink
Ensure last_error_str released on macOS (#714)
Browse files Browse the repository at this point in the history
Found by Coverity
  • Loading branch information
Youw authored Jan 14, 2025
1 parent ff67c77 commit b26f057
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mac/hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ static void free_hid_device(hid_device *dev)
if (dev->source)
CFRelease(dev->source);
free(dev->input_report_buf);
free(dev->last_error_str);
hid_free_enumeration(dev->device_info);

/* Clean up the thread objects */
Expand Down

0 comments on commit b26f057

Please sign in to comment.