Skip to content

Commit

Permalink
socket: free socket list before exiting
Browse files Browse the repository at this point in the history
So as to make valgrind happy.
  • Loading branch information
sergio-correia committed May 5, 2023
1 parent 0cacc91 commit 5631569
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/socket.c
Original file line number Diff line number Diff line change
@@ -170,6 +170,7 @@ static void spawn_process(int fd, const char *jwkdir,
close(fd);

pfunc(jwkdir, STDOUT_FILENO);
free_socket_list(slist);
exit(0);
} else if (pid == -1) {
perror("fork failed");

0 comments on commit 5631569

Please sign in to comment.