From 85a199ad0b17347a2ad3bf799824d6d7a2ad6493 Mon Sep 17 00:00:00 2001 From: scottmk Date: Tue, 31 Mar 2009 02:08:48 +0000 Subject: [PATCH] Plug a memory leak reported by Steven Chan. git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1687 9efc2488-bf62-4759-914b-345cdb29e865 --- src/srfsh/srfsh.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/srfsh/srfsh.c b/src/srfsh/srfsh.c index 176e239..7a44546 100644 --- a/src/srfsh/srfsh.c +++ b/src/srfsh/srfsh.c @@ -635,6 +635,7 @@ int send_request( char* server, omsg->status_name, omsg->status_text, code ); fflush(stdout); + osrfMessageFree(omsg); } } else { @@ -674,6 +675,7 @@ int send_request( char* server, char code[16]; snprintf( code, sizeof(code), "%d", omsg->status_code ); buffer_add( resp_buffer, code ); + osrfMessageFree(omsg); } } -- 2.11.0