Skip to content

Commit 70f48c6

Browse files
committed
Merge pull request #377 from dawgfoto/fixLeak
fix memory leak
2 parents f5ba691 + b41e2d5 commit 70f48c6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/rt/minfo.d

+1-3
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,6 @@ struct ModuleGroup
8181
// clean all initialized flags
8282
foreach (m; _modules)
8383
m.flags = m.flags & ~MIctordone;
84-
85-
free();
8684
}
8785

8886
void free()
@@ -147,7 +145,7 @@ extern (C) void rt_moduleTlsDtor()
147145
extern (C) void rt_moduleDtor()
148146
{
149147
_moduleGroup.runDtors();
150-
version (Posix)
148+
version (Win32) {} else
151149
.free(_moduleGroup._modules.ptr);
152150
_moduleGroup.free();
153151
}

0 commit comments

Comments
 (0)