Forgot a resource leak in linecounter, corrected