github.com/wader/osleaktest (go): Package osleaktest checks for leaked fds, child processes and temp files.  File descriptors check will not detect if a fd number existing before the check start and then is reused by leaky code.  Temp files check requires that $TMPDIR is used (os.TempDir or ioutil.Temp* with empty dir argument).  It is important that the returned check function is always called as it also restores TMPDIR. Use defer or func() { defer ... }().
Keywords: file-descriptor|go|golang|leak|processes|tempfiles|testing