Fixed two memory leaks in kiro-server