Gregofi / camel

Custom dynamic programming language
MIT License
6 stars 1 forks source link

Fix mem leaks #30

Closed Gregofi closed 2 years ago

Gregofi commented 2 years ago

Not all memory leaks were fixed. Mainly no objects are freed. This is left to when there will be a list of all dynamically allocated objects. The freeing will then be a lot more trivial then it would be now. The problem also is that some values are in two places at once (globals and const pool), but some are not, so we would have to be very careful with freeing.

closes #29