Was running valgrind for another thing and found a bunch of memory leaks in the following functions:
ReadConfig
getPermsForDrop
All are basically that xpathObj returned by xmlXPathEvalExpression is not freed. It should be freed even if there is an error return which it is not in any of the functions. Example, line 1026 daemon_util.c, xpathObj is freed inside an if().