I played around a bit with calling a dll and I am a bit confused about how and when to clean up the memory used by the dll.
The dll i call (just for testing) is nothing more than this:
extern "C" __declspec(dllexport) char *myFunction(int argc, char *argv[])
{
return "blabla";
}
Actually calling this function creates a small memory leak and i am not even sure what causes that leak here in this case, since that function does almost nothing.
Maybe someone can give me a hint, or maybe show me a example of a library that does proper cleaning up.