From 6e0451462ce119a1bbdac133f366f2a90d4fdbd4 Mon Sep 17 00:00:00 2001 From: erickson Date: Tue, 29 May 2007 13:26:33 +0000 Subject: [PATCH] no longer freeing return value from strerror since it should not be modified git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@926 9efc2488-bf62-4759-914b-345cdb29e865 --- src/libstack/osrf_system.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/libstack/osrf_system.c b/src/libstack/osrf_system.c index 23c44ad..d69ea6c 100644 --- a/src/libstack/osrf_system.c +++ b/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); -- 2.11.0