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

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Jan 31 14:59:43 EST 2008


Author: miker
Date: 2008-01-31 14:32:04 -0500 (Thu, 31 Jan 2008)
New Revision: 1242

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

Modified: trunk/src/c-apps/osrf_dbmath.c
===================================================================
--- trunk/src/c-apps/osrf_dbmath.c	2008-01-31 19:31:07 UTC (rev 1241)
+++ trunk/src/c-apps/osrf_dbmath.c	2008-01-31 19:32:04 UTC (rev 1242)
@@ -73,6 +73,10 @@
 			free(a); free(b);
 			return 0;
 		}
+		else {
+			if(a) free(a);
+			if(b) free(b);
+		}
 	}
 
 	return -1;



More information about the opensrf-commits mailing list