Patch from Scott McKellar:
authormiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 10 Mar 2008 03:53:04 +0000 (03:53 +0000)
committermiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 10 Mar 2008 03:53:04 +0000 (03:53 +0000)
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

src/libopensrf/osrf_system.c

index cd7553e..136558f 100644 (file)
@@ -393,6 +393,7 @@ int osrfSystemBootstrapClientResc( char* config_file, char* contextnode, char* r
 
        if (failure) {
                osrfStringArrayFree(arr);
 
        if (failure) {
                osrfStringArrayFree(arr);
+               free(log_file);
                free(log_level);
                free(username);
                free(password);
                free(log_level);
                free(username);
                free(password);