Index: apps/plugins/text_editor.c =================================================================== --- apps/plugins/text_editor.c (revision 21272) +++ apps/plugins/text_editor.c (working copy) @@ -154,6 +165,7 @@ if (!rb->read(fd,&t,1)) { rb->strcpy(eol,"\n"); + rb->close(fd); return 0; } if (t == '\r')