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

svn at svn.open-ils.org svn at svn.open-ils.org
Sat Dec 8 14:52:03 EST 2007


Author: miker
Date: 2007-12-08 14:31:57 -0500 (Sat, 08 Dec 2007)
New Revision: 1162

Modified:
   trunk/src/libopensrf/osrf_json_object.c
Log:
arg ... add tracking in both "new" functions

Modified: trunk/src/libopensrf/osrf_json_object.c
===================================================================
--- trunk/src/libopensrf/osrf_json_object.c	2007-12-08 19:29:09 UTC (rev 1161)
+++ trunk/src/libopensrf/osrf_json_object.c	2007-12-08 19:31:57 UTC (rev 1162)
@@ -110,9 +110,12 @@
 	if( freeObjList ) {
 		o = (jsonObject*) freeObjList;
 		freeObjList = freeObjList->next;
-	}
-	else
+        unusedObjRelease++;
+        currentListLen--;
+	} else {
 		OSRF_MALLOC( o, sizeof(jsonObject) );
+        mallocObjCreate++;
+    }
 
 	o->size = 0;
 	o->classname = NULL;



More information about the opensrf-commits mailing list