/** Frees memory used by an app_request object */
void _osrf_app_request_free( osrf_app_request * req ){
if( req == NULL ) return;
+
+ if( req->payload ) {
+ osrf_message_free( req->payload );
+ }
/*
osrf_message* cur_msg = req->result;
while( cur_msg != NULL ) {
}
osrf_message_free( req->payload );
*/
+
free( req );
}
osrf_stack_message_handler( session, arr[i] );
}
+ message_free( msg );
+
return 1;
}
return 0;
}
+int osrf_system_shutdown() {
+ config_reader_free();
+ log_free();
+ client_disconnect( global_client );
+ client_free( global_client );
+ global_client = NULL;
+ return 1;
+}
+