Minor memory issues fixed.

'u_long' variable name changed to 'u_dword'. It is not a good idea to name a variable as an existing type.
This commit is contained in:
Jose Angel Gariburo
2017-10-25 17:48:22 +02:00
parent 9d62ea410f
commit c8fb35cf53
4 changed files with 15 additions and 6 deletions

View File

@@ -66,7 +66,11 @@ int delay_manager_t::add(my_time_t delay,const dest_t &dest,char *data,int len)
delay_data_t tmp=delay_data;
tmp.data=(char *)malloc(delay_data.len+100);
if(!tmp.data)
{
mylog(log_trace, "malloc() returned null in delay_manager_t::add()");
return -1;
}
memcpy(tmp.data,data,delay_data.len);
my_time_t tmp_time=get_current_time_us();