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:
1 parent
07f2f3917a
commit
54851d3c65
3 files changed
+3
-3
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user