[Opensrf-commits] r1285 - trunk/src/libopensrf

svn at svn.open-ils.org svn at svn.open-ils.org
Sun Mar 16 14:52:22 EDT 2008


Author: miker
Date: 2008-03-16 14:18:27 -0400 (Sun, 16 Mar 2008)
New Revision: 1285

Modified:
   trunk/src/libopensrf/osrf_system.c
Log:
Plug for a a memory leak from Scott McKellar

Modified: trunk/src/libopensrf/osrf_system.c
===================================================================
--- trunk/src/libopensrf/osrf_system.c	2008-03-12 21:12:34 UTC (rev 1284)
+++ trunk/src/libopensrf/osrf_system.c	2008-03-16 18:18:27 UTC (rev 1285)
@@ -77,6 +77,7 @@
 			"/cache/global/max_cache_time");
 	}
 
+	jsonObjectFree( cacheServers );
 	return 0;
 }
 
@@ -122,6 +123,7 @@
 			while( (app = jsonObjectGetIndex(apps, i++)) ) 
 				osrfStringArrayAdd(arr, jsonObjectGetString(app));
 		}
+		jsonObjectFree(apps);
 
 		char* appname = NULL;
 		i = 0;



More information about the opensrf-commits mailing list