From: miker Date: Thu, 31 Jan 2008 19:31:07 +0000 (+0000) Subject: Patch from Scott McKellar to plug a memory leak in the mathbench test application X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ce92a6305dc0b296cf9acdc46cc63df78a391476;p=working%2FOpenSRF.git Patch from Scott McKellar to plug a memory leak in the mathbench test application git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1241 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/c-apps/osrf_math.c b/src/c-apps/osrf_math.c index f2e614d..7818451 100644 --- a/src/c-apps/osrf_math.c +++ b/src/c-apps/osrf_math.c @@ -100,6 +100,10 @@ int osrfMathRun( osrfMethodContext* ctx ) { osrfAppSessionFree(ses); } + else { + if(a) free(a); + if(b) free(b); + } } return -1;