I found one possible memory leak with cppcheck in lib/util/util_file.c. When read(2) fails file descriptor not closes. Patch in attach.
Created attachment 4444 [details] Proposal fix
Fixed in branch "master".