traceservices/tracefw/ulogger/src/sysconfig/configfilemanager.cpp
branchRCL_3
changeset 25 047f208ea78f
parent 0 08ec8eefde2f
--- a/traceservices/tracefw/ulogger/src/sysconfig/configfilemanager.cpp	Wed Sep 01 12:39:58 2010 +0100
+++ b/traceservices/tracefw/ulogger/src/sysconfig/configfilemanager.cpp	Wed Sep 15 00:35:00 2010 +0300
@@ -1,4 +1,4 @@
-// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies).
 // All rights reserved.
 // This component and the accompanying materials are made available
 // under the terms of "Eclipse Public License v1.0"
@@ -107,12 +107,14 @@
 	TInt error= fs.MkDir(fileName);
 	if(error==KErrNone || error== KErrAlreadyExists)
 		{
+        CleanupClosePushL(fs);
 		CFileMan* fMan = CFileMan::NewL(fs);
 		CleanupStack::PushL(fMan);
 		fileName.Append(KConfigFilename);
 		User::LeaveIfError(fMan->Copy(KDefaultConfigFilePath, fileName, CFileMan::EOverWrite) );
 		CleanupStack::PopAndDestroy(fMan);
 		User::LeaveIfError(fs.SetAtt(fileName,0, KEntryAttReadOnly));
+		CleanupStack::Pop(&fs);
 		}
 	fs.Close();
 	aFilePath.Zero();