[Opensrf-commits] r1273 - trunk/src/c-apps

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Mar 10 00:40:54 EDT 2008


Author: miker
Date: 2008-03-10 00:07:53 -0400 (Mon, 10 Mar 2008)
New Revision: 1273

Modified:
   trunk/src/c-apps/osrf_math.c
Log:
small memory leak plugged by Scott McKellar in the math-bench test app

Modified: trunk/src/c-apps/osrf_math.c
===================================================================
--- trunk/src/c-apps/osrf_math.c	2008-03-10 03:53:04 UTC (rev 1272)
+++ trunk/src/c-apps/osrf_math.c	2008-03-10 04:07:53 UTC (rev 1273)
@@ -89,6 +89,7 @@
 			/* dbmath uses the same method names that math does */
 			int req_id = osrfAppSessionMakeRequest( ses, newParams, ctx->method->name, 1, NULL );
 			osrfMessage* omsg = osrfAppSessionRequestRecv( ses, req_id, 60 );
+			jsonObjectFree(newParams);
 
 			if(omsg) {
 				/* return dbmath's response to the user */



More information about the opensrf-commits mailing list