Does a memory leak at unload of a DLL cause a leak in the host process?
Posted
by Viktor
on Stack Overflow
See other posts from Stack Overflow
or by Viktor
Published on 2008-09-25T09:02:30Z
Indexed on
2010/04/12
18:33 UTC
Read the original article
Hit count: 389
Consider this case:
dll = LoadDLL()
dll->do()
...
void do() {
char *a = malloc(1024);
}
...
UnloadDLL(dll);
At this point, will the 1k allocated in the call to malloc() be available to the host process again? The DLL is statically linking to the CRT.
© Stack Overflow or respective owner