On Fri, Apr 26, 2002 at 05:20:23PM +0800, leeroot wrote: > dear all, > > i wrote a little program, it link with iptables.c and invoke do_command > function, but when it call do_command("iptables -D .....") thousands of > times, system memory be ate up, anyone found memory leak in iptables.c?
If I'm not mistaken, there are quite a cople of 'memory leaks' in iptables.c. Sometimes I'm under the impression that the inital developers didn't care too much about this. Rusty? Any comments? As do_command is onl called once per iptables process, there might have been the impression that 'cleaning up' is not necessarry. However, wih large rulesets and iptables-restore, this assumption is no longer true, ... I'm always happy to receive patches :) > best regards > lee -- Live long and prosper - Harald Welte / [EMAIL PROTECTED] http://www.gnumonks.org/ ============================================================================ GCS/E/IT d- s-: a-- C+++ UL++++$ P+++ L++++$ E--- W- N++ o? K- w--- O- M+ V-- PS++ PE-- Y++ PGP++ t+ 5-- !X !R tv-- b+++ !DI !D G+ e* h--- r++ y+(*)