From fb0f6c5d11fb9e7d7a19b9d3f85c0c8b06bf5c41 Mon Sep 17 00:00:00 2001 From: miker Date: Thu, 31 Jan 2008 19:32:04 +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@1242 9efc2488-bf62-4759-914b-345cdb29e865 --- src/c-apps/osrf_dbmath.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.43.2