Hello! cppcheck found possible resource leak in function reg_diff_load(): leak occurs when read(2) fails. Patch in attach.
Created attachment 4445 [details] Proposal fix
Fixed in branch "master".