[Opensrf-commits] r1272 - trunk/src/libopensrf

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Mar 10 00:26:04 EDT 2008


Author: miker
Date: 2008-03-09 23:53:04 -0400 (Sun, 09 Mar 2008)
New Revision: 1272

Modified:
   trunk/src/libopensrf/osrf_system.c
Log:
Patch from Scott McKellar:

This patch plugs a memory leak in osrfSystemBootstrapClientResc().
We were leaking log_file in the case of an early return.



Modified: trunk/src/libopensrf/osrf_system.c
===================================================================
--- trunk/src/libopensrf/osrf_system.c	2008-03-10 03:02:07 UTC (rev 1271)
+++ trunk/src/libopensrf/osrf_system.c	2008-03-10 03:53:04 UTC (rev 1272)
@@ -393,6 +393,7 @@
 
 	if (failure) {
 		osrfStringArrayFree(arr);
+		free(log_file);
 		free(log_level);
 		free(username);
 		free(password);



More information about the opensrf-commits mailing list