Skip to content

Commit

Permalink
Don't leak work queue items in gss-server
Browse files Browse the repository at this point in the history
On accept() failure in gss-server.c, we would leak the freshly
allocated work item.
  • Loading branch information
frozencemetery authored and greghudson committed Jun 26, 2018
1 parent 8b3384c commit db479eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/appl/gss-sample/gss-server.c
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,7 @@ main(int argc, char **argv)
/* Accept a TCP connection */
if ((work->s = accept(stmp, NULL, 0)) < 0) {
perror("accepting connection");
free(work);
continue;
}

Expand Down

0 comments on commit db479eb

Please sign in to comment.