diff -r aa2539c91954 -r 1c2bb2fc7c87 perfsrv/piprofiler/piprofiler_plat/inc/ProfilerSession.h --- a/perfsrv/piprofiler/piprofiler_plat/inc/ProfilerSession.h Fri Oct 08 14:56:39 2010 +0300 +++ b/perfsrv/piprofiler/piprofiler_plat/inc/ProfilerSession.h Tue Oct 26 16:20:32 2010 +0300 @@ -303,10 +303,11 @@ } p.RSessionBase::Close(); - + delete buffer; + buffer = NULL; if(r != KErrNone) { - LOGSTRING2("Profiler responded with an error - code %d !!",r); + LOGSTRING2("Profiler responded with an error - code %d !!",r); return r; } else