Skip to content

Commit

Permalink
Fix leaked file descriptor on error path.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco van Wieringen committed Feb 11, 2014
1 parent 3c0033f commit 3cab7d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dird/fd_cmds.c
Expand Up @@ -425,6 +425,7 @@ static bool send_list_item(JCR *jcr, const char *code, char *item, BSOCK *fd)
fd->msglen = Mmsg(fd->msg, "%s", buf);
if (!bnet_send(fd)) {
Jmsg(jcr, M_FATAL, 0, _(">filed: write error on socket\n"));
fclose(ffd);
return false;
}
}
Expand Down

0 comments on commit 3cab7d2

Please sign in to comment.