[Opensrf-commits] r1241 - trunk/src/c-apps

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Jan 31 14:58:46 EST 2008


Author: miker
Date: 2008-01-31 14:31:07 -0500 (Thu, 31 Jan 2008)
New Revision: 1241

Modified:
   trunk/src/c-apps/osrf_math.c
Log:
Patch from Scott McKellar to plug a memory leak in the mathbench test application

Modified: trunk/src/c-apps/osrf_math.c
===================================================================
--- trunk/src/c-apps/osrf_math.c	2008-01-31 19:29:08 UTC (rev 1240)
+++ trunk/src/c-apps/osrf_math.c	2008-01-31 19:31:07 UTC (rev 1241)
@@ -100,6 +100,10 @@
 
 			osrfAppSessionFree(ses);
 		}
+		else {
+			if(a) free(a);
+			if(b) free(b);
+		}
 	}
 
 	return -1;



More information about the opensrf-commits mailing list