Open SizzlingCalamari opened 9 years ago
guessing this may cause , a memory leak, its probably not the only one, and I don't want to find out how it effects mac/linux/windows differently
@bmk10 It's up to the implementation, but if it doesn't crash, I'd assume it has no adverse effects. It's just incorrect according to the language.
QuantizedValue has no destructor, so this won't cause any errors. If it ever had one added I'm guessing this would crash, or worse, corrupt memory and keep running.
In the alloc/free pair AllocQValue and FreeQuantization in quantize.cpp, a call to new is using an incorrect corresponding call to delete.
The delete call should be
delete t;