break;
}
if (!curlist || rc > 0) {
- newlist = mem_calloc (1, sizeof (LIST));
+ newlist = p_new(LIST, 1);
newlist->data = env->real_subj;
if (oldlist) {
newlist->next = oldlist->next;
top = thread;
- array = mem_calloc ((array_size = 256), sizeof (THREAD *));
+ array = p_new(THREAD *, (array_size = 256));
while (1) {
if (init || !thread->sort_key) {
thread->sort_key = NULL;
else {
new = (option (OPTDUPTHREADS) ? thread : NULL);
- thread = mem_calloc (1, sizeof (THREAD));
+ thread = p_new(THREAD, 1);
thread->message = cur;
thread->check_subject = 1;
cur->thread = thread;
break;
if ((new = hash_find (ctx->thread_hash, ref->data)) == NULL) {
- new = mem_calloc (1, sizeof (THREAD));
+ new = p_new(THREAD, 1);
hash_insert (ctx->thread_hash, ref->data, new, 1);
}
else {