BPOINT Type 1 | developer.brewmp.com BPOINT Type 1 | developer.brewmp.com

Developer

BPOINT Type 1

apaladin wrote:Thank you for lead this Thread.
I know Bpoint type1 is memory leak from MALLOC .

begin code....
void testCode(....){
char* szWord;
szWord = (char*)MALLOC(255)+1; <<<

try like this
szWord = (char*)MALLOC(255+1);

szWord = (char*)MALLOC(255)+1;
What a shame! ....
So thank you oceans youre save my times

szWord = (char*)MALLOC(255)+1;
What a shame! ....
So thank you oceans youre save my times

Presumably you also got a BPOINT 4 which is deleting a corrupt/invalid node? As you are trying to free a pointer that you didn't allocate - i.e. ptr = MALLOC(255), and you free (ptr + 1). Obviously you've solved the problem for now, but assuming you did get the BPOINT 4, then it's a good clue as to what's going on.

Presumably you also got a BPOINT 4 which is deleting a corrupt/invalid node? As you are trying to free a pointer that you didn't allocate - i.e. ptr = MALLOC(255), and you free (ptr + 1). Obviously you've solved the problem for now, but assuming you did get the BPOINT 4, then it's a good clue as to what's going on.