Branch: Tag:

2005-11-15

2005-11-15 10:31:48 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed segfault when exiting uninitialized mutex keys.

Rev: src/threads.c:1.245

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: threads.c,v 1.244 2005/05/19 22:35:34 mast Exp $ + || $Id: threads.c,v 1.245 2005/11/15 10:31:48 grubba Exp $   */      #ifndef CONFIGURE_TEST
1470:    THIS_KEY->mutex_obj = NULL;    if (mut->num_waiting)    co_signal(&mut->condition); -  else if (!mutex_obj->prog) +  else if (mutex_obj && !mutex_obj->prog)    co_destroy (&mut->condition); -  +  if (mutex_obj)    free_object(mutex_obj);    }   }