small memory leak plugged by Scott McKellar in the math-bench test app
authormiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 10 Mar 2008 04:07:53 +0000 (04:07 +0000)
committermiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 10 Mar 2008 04:07:53 +0000 (04:07 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1273 9efc2488-bf62-4759-914b-345cdb29e865

src/c-apps/osrf_math.c

index 7818451..df44afb 100644 (file)
@@ -89,6 +89,7 @@ int osrfMathRun( osrfMethodContext* ctx ) {
                        /* 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 */