From: Andre Noll Date: Sat, 12 Aug 2017 19:32:28 +0000 (+0200) Subject: server: Deplete close on fork list on exit. X-Git-Tag: v0.6.2~4^2~20 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=659b46df9a49e0677fd7ff85a9842adac4abec84;hp=659b46df9a49e0677fd7ff85a9842adac4abec84 server: Deplete close on fork list on exit. We empty the list in the command handler process by calling close_listed_fds(), but the server process leaks the memory allocated for the entries of the close on fork list. This commit introduces deplete_close_on_fork_list() to empty the list without closing any file descriptors. It is called from main() to avoid the leak. With the patch applied, valgrind --show-reachable=no no longer complains about possibly lost blocks for the server process. ---