From ce92a6305dc0b296cf9acdc46cc63df78a391476 Mon Sep 17 00:00:00 2001 From: miker Date: Thu, 31 Jan 2008 19:31:07 +0000 Subject: [PATCH] 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 --- src/c-apps/osrf_math.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.11.0