Skip to content

free() problems

Camille Briand edited this page Mar 9, 2017 · 1 revision

We are currently having some troubles with freeing memory

During the test executions of our program it occurs that what worked with Windows 10 was no longer working with Linux 16.04 LTS or AntiX 16. In fact: the program crashes when entering three elements in the same line


It seems that the crash was caused by the bad use of free() function on two dimensional char array (array of strings)


Since then, we used valgrind to debug the program and saw that not only the program crashes when entering 3 elements on the same line, but also there are a lot of memory leaks!



So we're presently working on a fix of this embarrassing issue which we did not see coming.

Clone this wiki locally