lib/sdo_request.c
changeset 1995 7d748d9cf9e8
parent 1959 656f114153c2
child 2421 bc2d4bf9cbe5
child 2589 2b9c78543663
--- 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)