Skip to content
Snippets Groups Projects
Commit 1fd44cb4 authored by Florian Pose's avatar Florian Pose
Browse files

merge -c1614 branches/stable-1.4: Fixed datagram cleaning.

parent 60b99708
No related branches found
No related tags found
No related merge requests found
......@@ -113,8 +113,10 @@ void ec_datagram_init(ec_datagram_t *datagram /**< EtherCAT datagram. */)
*/
void ec_datagram_clear(ec_datagram_t *datagram /**< EtherCAT datagram. */)
{
if (datagram->data_origin == EC_ORIG_INTERNAL && datagram->data)
if (datagram->data_origin == EC_ORIG_INTERNAL && datagram->data) {
kfree(datagram->data);
datagram->data = NULL;
}
}
/*****************************************************************************/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment