{
channellist_param_t *channellist;
- channellist = (channellist_param_t *)malloc( sizeof(channellist_param_t));
+ channellist = (channellist_param_t *)opj_malloc( sizeof(channellist_param_t));
channellist->first = NULL;
channellist->last = NULL;
return NULL;
}
- channel = (channel_param_t *)malloc( sizeof(channel_param_t));
+ channel = (channel_param_t *)opj_malloc( sizeof(channel_param_t));
channel->cachemodel = cachemodel;
/* set channel ID and get present time */
#ifndef SERVER
fprintf( logstream, "local log: channel: %s deleted\n", (*channel)->cid);
#endif
- free(*channel);
+ opj_free(*channel);
}
void delete_channellist( channellist_param_t **channellist)
#ifndef SERVER
fprintf( logstream, "local log: channel %s deleted!\n", channelPtr->cid);
#endif
- free(channelPtr);
+ opj_free(channelPtr);
channelPtr=channelNext;
}
- free( *channellist);
+ opj_free( *channellist);
}
void print_allchannel( channellist_param_t *channellist)