08.06.2012, 22:33
Solution for ram (r7)
The member function GetCString located in CAmxString.cpp is leading to memory leaks because the memory is not free'd at some places.
For instance inside CScripting.cpp, the native cache_get_field_content is leaking memory: this can be fixed by freeing the memory:
It has been tested.
I think the mysql_function_query native is also leaking memory, I'll try to take a look later.
The member function GetCString located in CAmxString.cpp is leading to memory leaks because the memory is not free'd at some places.
For instance inside CScripting.cpp, the native cache_get_field_content is leaking memory: this can be fixed by freeing the memory:
Код:
free(szField); // add this Mutex::getInstance()->_unlockMutex(); return 1; }
I think the mysql_function_query native is also leaking memory, I'll try to take a look later.