From: miker Date: Thu, 31 Jan 2008 19:32:04 +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=fb0f6c5d11fb9e7d7a19b9d3f85c0c8b06bf5c41;p=opensrf%2Fbjwebb.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@1242 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/c-apps/osrf_dbmath.c b/src/c-apps/osrf_dbmath.c index 41ace40..bb0c093 100644 --- a/src/c-apps/osrf_dbmath.c +++ b/src/c-apps/osrf_dbmath.c @@ -73,6 +73,10 @@ int osrfMathRun( osrfMethodContext* ctx ) { free(a); free(b); return 0; } + else { + if(a) free(a); + if(b) free(b); + } } return -1;