Correcting problems with releasing memory
Last changes of cumulative version