From: erickson Date: Tue, 29 May 2007 13:26:33 +0000 (+0000) Subject: no longer freeing return value from strerror since it should not be modified X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a31db264c0f0e42717e6661ddb03ed570012836a;p=Evergreen.git no longer freeing return value from strerror since it should not be modified git-svn-id: svn://svn.open-ils.org/ILS/trunk@7382 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/OpenSRF/src/libstack/osrf_system.c b/OpenSRF/src/libstack/osrf_system.c index 23c44ad6ac..d69ea6c8fe 100644 --- a/OpenSRF/src/libstack/osrf_system.c +++ b/OpenSRF/src/libstack/osrf_system.c @@ -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);