added a free function pointer for the user data
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 23 May 2006 01:39:17 +0000 (01:39 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 23 May 2006 01:39:17 +0000 (01:39 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@724 9efc2488-bf62-4759-914b-345cdb29e865

src/libstack/osrf_app_session.c

index 2813c43..a92eee0 100644 (file)
@@ -300,6 +300,9 @@ osrf_app_session* osrf_app_server_session_init(
 void _osrf_app_session_free( osrf_app_session* session ){
        if(session==NULL)
                return;
+
+       if( session->userDataFree && session->userData ) 
+               session->userDataFree(session->userData);
        
        free(session->remote_id);
        free(session->orig_remote_id);