fix: memory leak fix in b914cd0f caused seg faults in test 10.
Memory bug: allocate enough size to store (complex) value in statistics