From: miker Date: Mon, 10 Mar 2008 03:53:04 +0000 (+0000) Subject: Patch from Scott McKellar: X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=21581ede2de0280ab8c1738d9edf4476824821a2;p=opensrf%2Fbjwebb.git Patch from Scott McKellar: This patch plugs a memory leak in osrfSystemBootstrapClientResc(). We were leaking log_file in the case of an early return. git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1272 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/libopensrf/osrf_system.c b/src/libopensrf/osrf_system.c index cd7553e..136558f 100644 --- a/src/libopensrf/osrf_system.c +++ b/src/libopensrf/osrf_system.c @@ -393,6 +393,7 @@ int osrfSystemBootstrapClientResc( char* config_file, char* contextnode, char* r if (failure) { osrfStringArrayFree(arr); + free(log_file); free(log_level); free(username); free(password);