[Opensrf-commits] r1206 - trunk/src/srfsh
svn at svn.open-ils.org
svn at svn.open-ils.org
Sun Jan 6 21:21:31 EST 2008
Author: miker
Date: 2008-01-06 20:57:18 -0500 (Sun, 06 Jan 2008)
New Revision: 1206
Modified:
trunk/src/srfsh/srfsh.c
Log:
Memory leak plugged by Scott McKellar:
In handle_request() we allocate a growing_buffer and pass the pointer
to send_request(). However we weren't freeing the growing_buffer
after the return from send_request().
Modified: trunk/src/srfsh/srfsh.c
===================================================================
--- trunk/src/srfsh/srfsh.c 2008-01-07 01:55:25 UTC (rev 1205)
+++ trunk/src/srfsh/srfsh.c 2008-01-07 01:57:18 UTC (rev 1206)
@@ -534,7 +534,9 @@
buffer_add(buffer, "]");
}
- return send_request( server, method, buffer, relay );
+ int rc = send_request( server, method, buffer, relay );
+ buffer_free( buffer );
+ return rc;
}
return 0;
More information about the opensrf-commits
mailing list