morganstanley / hobbes

A language and an embedded JIT compiler
http://hobbes.readthedocs.io/
Apache License 2.0
1.16k stars 105 forks source link

memory leak in ClosureConvertF::with(const Fn*) #420

Closed mo-xiaoming closed 3 years ago

mo-xiaoming commented 3 years ago

This is a low hanging fruit.

Running hi, before this change

 SUMMARY: AddressSanitizer: 632010 byte(s) leaked in 24055 allocation(s).

after this change

SUMMARY: AddressSanitizer: 500730 byte(s) leaked in 7720 allocation(s).