From 1119445cbd1d540e2f76632e0805386a7fcc23d1 Mon Sep 17 00:00:00 2001 From: erickson Date: Tue, 23 May 2006 01:39:17 +0000 Subject: [PATCH] added a free function pointer for the user data git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@724 9efc2488-bf62-4759-914b-345cdb29e865 --- src/libstack/osrf_app_session.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libstack/osrf_app_session.c b/src/libstack/osrf_app_session.c index 2813c43..a92eee0 100644 --- a/src/libstack/osrf_app_session.c +++ b/src/libstack/osrf_app_session.c @@ -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); -- 2.11.0