free_auxdata() added to mbus_handle interface for freeing context specific data
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
//
|
||||
//------------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user