From: miker Date: Mon, 10 Mar 2008 04:07:53 +0000 (+0000) Subject: small memory leak plugged by Scott McKellar in the math-bench test app X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=616853ab76dc78da0ca2fc2a8c025a0bcc526d66;p=opensrf%2Fbjwebb.git 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 --- 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 */