[Opensrf-commits] r1687 - trunk/src/srfsh (scottmk)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Mar 30 22:08:50 EDT 2009


Author: scottmk
Date: 2009-03-30 22:08:48 -0400 (Mon, 30 Mar 2009)
New Revision: 1687

Modified:
   trunk/src/srfsh/srfsh.c
Log:
Plug a memory leak reported by Steven Chan.


Modified: trunk/src/srfsh/srfsh.c
===================================================================
--- trunk/src/srfsh/srfsh.c	2009-03-27 01:29:15 UTC (rev 1686)
+++ trunk/src/srfsh/srfsh.c	2009-03-31 02:08:48 UTC (rev 1687)
@@ -635,6 +635,7 @@
 						omsg->status_name, omsg->status_text, code );
 
 				fflush(stdout);
+				osrfMessageFree(omsg);
 			}
 
 		} else {
@@ -674,6 +675,7 @@
 				char code[16];
 				snprintf( code, sizeof(code), "%d", omsg->status_code );
 				buffer_add( resp_buffer, code );
+				osrfMessageFree(omsg);
 			}
 		}
 



More information about the opensrf-commits mailing list