Go Down

Topic: Memory leak in malloc/realloc/free (Read 638 times) previous topic - next topic

ramo102

Hi all.
I recently struggled with a dynamic memory problem.

In simple terms, in my example sketch I malloc a certain amount of bytes and I cannot free them.

Even if I called the free() function, memory is not freed. I later founded this old post: http://arduino.cc/forum/index.php/topic,46948.0.html

Applying that to my sketch gives the right result.

Is there a simpler way to do this (i.e. can this be done with no change to user code)?

Go Up