Valgrind reports a memory leak in MessageOfTheDay::finalization because a regular expression is being compiled multiple times, but freed only once. The attached patch fixes this problem.
Frees memory associated with regex_t
This valgrind report shows regcomp() leaks at the end.
Assigning to dtremenak, since 'svn blame' shows that you have done the regex stuff in the MessageOfTheDay class.
Accepted as SVN r22480.