Skip to content

Commit

Permalink
Fix file descriptor leak for tmpfile() in share.mod
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelortmann committed Jun 4, 2024
1 parent 0ee04c2 commit 2762064
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mod/share.mod/share.c
Original file line number Diff line number Diff line change
Expand Up @@ -1270,6 +1270,7 @@ static void share_ufsend(int idx, char *par)
putlog(LOG_BOTS, "*", "Asynchronous connection failed!");
dprintf(idx, "s e Can't connect to you!\n");
zapfbot(idx);
fclose(f);
} else {
strcpy(dcc[i].nick, "*users");
dcc[i].u.xfer->filename = nmalloc(strlen(s) + 1);
Expand Down

0 comments on commit 2762064

Please sign in to comment.