Skip to content

Commit e9bd136

Browse files
Fix possible file descriptor leak in share_ufsend
1 parent 5cde716 commit e9bd136

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mod/share.mod/share.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,6 +1269,7 @@ static void share_ufsend(int idx, char *par)
12691269
putlog(LOG_BOTS, "*", "Asynchronous connection failed!");
12701270
dprintf(idx, "s e Can't connect to you!\n");
12711271
zapfbot(idx);
1272+
fclose(f);
12721273
} else {
12731274
strcpy(dcc[i].nick, "*users");
12741275
dcc[i].u.xfer->filename = nmalloc(strlen(s) + 1);

0 commit comments

Comments
 (0)