filecount plugin: fix leak on error path