do not defer tmpf.Close to close file descripter before rename
do not defer tmpf.Close to close file descripter before rename

mackerelio/go-check-plugins,mackerelio/go-check-plugins,mackerelio/go-check-plugins