Branch: Tag:

1999-10-14

1999-10-14 20:29:19 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed minor memoryleak.

Rev: src/threads.c:1.104

1:   #include "global.h" - RCSID("$Id: threads.c,v 1.103 1999/08/30 06:23:50 hubbe Exp $"); + RCSID("$Id: threads.c,v 1.104 1999/10/14 20:29:19 grubba Exp $");      int num_threads = 1;   int threads_disabled = 0;
598:    }    if(throw_severity == THROW_EXIT)    { +  free((char *) data);    do_exit(throw_value.u.integer);    }    } else {
653:    THREAD_T dummy;    struct thread_starter *arg;    int tmp; -  arg=ALLOC_STRUCT(thread_starter); +  arg = ALLOC_STRUCT(thread_starter);    arg->args=aggregate_array(args);    arg->id=clone_object(thread_id_prog,0);    OBJ2THREAD(arg->id)->status=THREAD_RUNNING;       do { -  tmp=th_create(& OBJ2THREAD(arg->id)->id, +  tmp = th_create(& OBJ2THREAD(arg->id)->id,    new_thread_func,    arg);    } while( tmp == EINTR );