From 4c2f3840018683bcf0228f5d4fc296b5375a04ae Mon Sep 17 00:00:00 2001 From: Juan Carlos Luciani Date: Mon, 5 Mar 2007 18:01:32 +0000 Subject: [PATCH] Resolved issues found during unit testing of file logging feature. --- CASA-auth-token/client/library/client.conf | 3 ++- CASA-auth-token/client/library/config.c | 2 +- CASA-auth-token/client/library/engine.c | 6 +++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CASA-auth-token/client/library/client.conf b/CASA-auth-token/client/library/client.conf index 1b388d74..e2932908 100644 --- a/CASA-auth-token/client/library/client.conf +++ b/CASA-auth-token/client/library/client.conf @@ -113,6 +113,7 @@ AllowUntrustedCerts true # If this parameter is not set on windows, the client defaults # to dumping debug output to the debug console. # -# Note: The folder specified must exist. +# Note: The folder specified must exist and all users that may +# be writting to it should be given write privileges to it. # #DebugLogFolderPath c:\logfolder diff --git a/CASA-auth-token/client/library/config.c b/CASA-auth-token/client/library/config.c index 09d70fe9..87bfcf93 100644 --- a/CASA-auth-token/client/library/config.c +++ b/CASA-auth-token/client/library/config.c @@ -451,7 +451,7 @@ ConfigIf_FreeValueString( // Free the buffer free(pValueString); - DbgTrace(2, "-ConfigIf_FreeValueString- End", 0); + DbgTrace(2, "-ConfigIf_FreeValueString- End\n", 0); } diff --git a/CASA-auth-token/client/library/engine.c b/CASA-auth-token/client/library/engine.c index 0c7f3cd4..db7eb19f 100644 --- a/CASA-auth-token/client/library/engine.c +++ b/CASA-auth-token/client/library/engine.c @@ -1059,7 +1059,11 @@ UnInitializeLibrary(void) // Free necessary buffers if (g_pDebugLogFilePath) - free(g_pDebugLogFilePath); + { + char *pBuffer = g_pDebugLogFilePath; + g_pDebugLogFilePath = NULL; + free(pBuffer); + } if (g_pATSHostName) free(g_pATSHostName);