no longer freeing return value from strerror since it should not be modified
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 29 May 2007 13:26:33 +0000 (13:26 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 29 May 2007 13:26:33 +0000 (13:26 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@926 9efc2488-bf62-4759-914b-345cdb29e865

src/libstack/osrf_system.c

index 23c44ad..d69ea6c 100644 (file)
@@ -135,9 +135,7 @@ int osrfSystemBootstrap( char* hostname, char* configfile, char* contextNode ) {
             if(errno == ECHILD)
                 osrfLogError(OSRF_LOG_MARK, "We have no more live services... exiting");
             else
-               char* err_str = strerror(errno);
-                osrfLogError(OSRF_LOG_MARK, "Exiting top-level system loop with error: %s", err_str);
-               free(err_str);
+                osrfLogError(OSRF_LOG_MARK, "Exiting top-level system loop with error: %s", strerror(errno));
             break;
         } else {
             osrfLogError(OSRF_LOG_MARK, "We lost a top-level service process with PID %ld", pid);