From 616853ab76dc78da0ca2fc2a8c025a0bcc526d66 Mon Sep 17 00:00:00 2001 From: miker Date: Mon, 10 Mar 2008 04:07:53 +0000 Subject: [PATCH] small memory leak plugged by Scott McKellar in the math-bench test app git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1273 9efc2488-bf62-4759-914b-345cdb29e865 --- src/c-apps/osrf_math.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/c-apps/osrf_math.c b/src/c-apps/osrf_math.c index 7818451..df44afb 100644 --- a/src/c-apps/osrf_math.c +++ b/src/c-apps/osrf_math.c @@ -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 */ -- 2.11.0