free_auxdata() added to mbus_handle interface for freeing context specific data

This commit is contained in:
jakubovsky
2012-07-04 19:08:51 +02:00
parent 645e5eb482
commit 34255c7237
6 changed files with 49 additions and 0 deletions

View File

@ -89,6 +89,19 @@ mbus_tcp_connect(mbus_handle *handle)
return 1;
}
void
mbus_tcp_data_free(mbus_handle *handle)
{
mbus_tcp_handle *tcp_data;
if (handle)
{
tcp_data = (mbus_tcp_handle *) handle->auxdata;
free(tcp_data->host);
free(tcp_data);
}
}
//------------------------------------------------------------------------------
//
//------------------------------------------------------------------------------