Fixed a potential access to deallocated memory
Fixed a potential access to deallocated memory

cpputest/cpputest,offa/cpputest,offa/cpputest,basvodde/cpputest,basvodde/cpputest,cpputest/cpputest,offa/cpputest,basvodde/cpputest,cpputest/cpputest,basvodde/cpputest,offa/cpputest,cpputest/cpputest