Skip to content

Commit

Permalink
io: allow descriptor drivers to free their own memory
Browse files Browse the repository at this point in the history
  • Loading branch information
jewelcodes committed Nov 28, 2024
1 parent a05da13 commit 592aec2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ void closeIO(void *pv, void *iodv) {

if(iod->valid) {
iod->valid = false;
if(iod->data) free(iod->data);
iod->data = NULL;

p->iodCount--;
Expand Down

0 comments on commit 592aec2

Please sign in to comment.