> > Betreff: [uCsimm] General memory problem
> > Actually, I'm having memory leak problems as well. I haven't noticed
> > it with the httpd (not using BOA...), but with one daemon I developed.
> > Basically it eats 1000B per loop for the program. It is reading data
> > from the serial port, parsing it with sscanf, then printing it to an
> > .HTML file using lots of fprintf. stringcpy is used as well. This
> > doesn't happen on my other 386 embedded linux machine (same code).
> > Buffers are permanent, not allocated/deallocated.
> > Any ideas?
fprintf and_the_like ARE source of memory leaks. I rewrote all
my applications using write() sys call instead of fprintf().
This fixed the problem.
This message resent by the email@example.com list server http://www.uClinux.com/
This archive was generated by hypermail 2b30 : Sun Apr 07 2002 - 00:01:39 EST