[Date Prev][Date Next] [Chronological] [Thread] [Top]


I was up late last night, and am probably not thinking clearly, but I just
ran into a
problem in connection.c.  In connections_destroy(), in the loop that
destroys the
mutexes, it also frees  &connections[i].  Since connections is an array of
structures, not an array of connection pointers, the first time through,
this frees
the whole array.  All subsequent passes through this loop are then accessing
memory.  Is this correct, or am I just in a haze?

  o    _______________  Gary Williams           SAS Institute Inc. 
 /\_  _|             |  Gary.Williams@sas.com   SAS Campus Dr. 
_\__`[_______________|  919-677-8000 x4059      Cary, NC 27513 
] [ \, ][         ][