diff -r b369f3f92eb8 -r 7d748d9cf9e8 lib/sdo_request.c --- a/lib/sdo_request.c Mon Oct 18 10:30:57 2010 +0200 +++ b/lib/sdo_request.c Mon Oct 18 10:45:07 2010 +0200 @@ -43,8 +43,17 @@ #include "slave_config.h" #include "master.h" +/*****************************************************************************/ + +void ec_sdo_request_clear(ec_sdo_request_t *req) +{ + if (req->data) { + free(req->data); + } +} + /***************************************************************************** - * Realtime interface. + * Application interface. ****************************************************************************/ void ecrt_sdo_request_timeout(ec_sdo_request_t *req, uint32_t timeout)