From: Craig Small Date: Sun, 1 May 2016 05:36:22 +0000 (+0000) Subject: Merge branch 'fix/pslog_unterminated_string' into 'master' X-Git-Tag: v23.0rc1~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6068e0d22c4f2962610d4328b424e2a535249e4d;p=psmisc Merge branch 'fix/pslog_unterminated_string' into 'master' pslog: fix unterminated string and memory leaks Adding null terminator to buf string. Cleaned a memory leak calling closedir on /proc/$PID/fd, that was left open. `==29483== ==29483== HEAP SUMMARY: ==29483== in use at exit: 0 bytes in 0 blocks ==29483== total heap usage: 256 allocs, 256 frees, 70,990 bytes allocated ==29483== ==29483== All heap blocks were freed -- no leaks are possible ==29483== ==29483== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) ==29483== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)` See merge request !2 --- 6068e0d22c4f2962610d4328b424e2a535249e4d