foralex / picoc

Automatically exported from code.google.com/p/picoc
0 stars 0 forks source link

Memory errors and leaks #121

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Running valgrind on the following test programs gives memory leaks and memory 
errors:

12_hashdefine.c
30_hanoi.c
32_led.c

Original issue reported on code.google.com by zik.sale...@gmail.com on 14 Feb 2011 at 4:37

GoogleCodeExporter commented 8 years ago
There were a few things wrong here:

* Array bounds were reversed in multiple dimensional arrays, causing overruns 
(fixed in r524)
* The hanoi program was incorrect (fixed in r529)
* Function prototypes which were overridden were not deallocated correctly 
(fixed in r529)

Original comment by zik.sale...@gmail.com on 15 Feb 2011 at 1:20