Plug for a a memory leak from Scott McKellar
authormiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Sun, 16 Mar 2008 18:18:27 +0000 (18:18 +0000)
committermiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Sun, 16 Mar 2008 18:18:27 +0000 (18:18 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1285 9efc2488-bf62-4759-914b-345cdb29e865

src/libopensrf/osrf_system.c

index 61977ad..8a805d3 100644 (file)
@@ -77,6 +77,7 @@ int osrfSystemInitCache( void ) {
                        "/cache/global/max_cache_time");
        }
 
+       jsonObjectFree( cacheServers );
        return 0;
 }
 
@@ -122,6 +123,7 @@ int osrfSystemBootstrap( const char* hostname, const char* configfile,
                        while( (app = jsonObjectGetIndex(apps, i++)) ) 
                                osrfStringArrayAdd(arr, jsonObjectGetString(app));
                }
+               jsonObjectFree(apps);
 
                char* appname = NULL;
                i = 0;