From: erickson Date: Tue, 15 Mar 2005 21:51:03 +0000 (+0000) Subject: found the (i believe) the remaining leaks in the transport code X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b86b321a3470a972524136173bda768d3ac78ca1;p=opensrf%2Fbjwebb.git found the (i believe) the remaining leaks in the transport code git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@233 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/libstack/osrf_app_session.c b/src/libstack/osrf_app_session.c index dde80fa..620d18c 100644 --- a/src/libstack/osrf_app_session.c +++ b/src/libstack/osrf_app_session.c @@ -292,6 +292,7 @@ void _osrf_app_session_free( osrf_app_session* session ){ free(session->remote_id); free(session->orig_remote_id); + free(session->session_id); free(session); } diff --git a/src/libstack/osrf_stack.c b/src/libstack/osrf_stack.c index 419ce51..c18f5bb 100644 --- a/src/libstack/osrf_stack.c +++ b/src/libstack/osrf_stack.c @@ -58,6 +58,8 @@ int osrf_stack_message_handler( osrf_app_session* session, osrf_message* msg ) { if(ret_msg) osrf_stack_application_handler( session, ret_msg ); + else + osrf_message_free(msg); return 1;