This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Syslog frees memory??


Ok, so I've been struggling with a strange issue and a broken destructor.

btw, anyone know a single-word for the idea "situations so complex
they cannot be reproduced"

Here is situation:
---------------------------
class {
   datax ** y;
   data * b;
   int numbofY;
}

destructor:
   free all in y (via for-loop & numbofY)

causes seg-fault unless i syslog something in there

however

destructor:
   free all in y(same)
   freee b

works OK

any idea why syslog makes this failure to free(b) acceptable during
execution/exit of program?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]