Fixed a memory leak in lash. It seems that close_all was calling close()

directly instead of calling mark_closed(), which allowed the memory allocated
by mark_open() to never be freed.
 -Erik
This commit is contained in:
Eric Andersen committed 2001-03-06 20:44:39 +00:00
1 parent 07f2f3917a
commit 54851d3c65
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -632,7 +632,7 @@ static void close_all()
{
struct close_me *c;
for (c=close_me_head; c; c=c->next) {
close(c->fd);
mark_closed(c->fd);
}
close_me_head = NULL;
}
+1 -1
View File
@@ -632,7 +632,7 @@ static void close_all()
{
struct close_me *c;
for (c=close_me_head; c; c=c->next) {
close(c->fd);
mark_closed(c->fd);
}
close_me_head = NULL;
}
+1 -1
View File
@@ -632,7 +632,7 @@ static void close_all()
{
struct close_me *c;
for (c=close_me_head; c; c=c->next) {
close(c->fd);
mark_closed(c->fd);
}
close_me_head = NULL;
}