Minor Bugs found
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 9 lines · On Wed, May 07, 2003 at 09:13:35AM +0000, [email protected] wrote:
Dear,
I have found minor bugs related to iptables program.
The bugs are about wasting memory spaces when the iptables (in particular, iptables-restore), reads from a file with many command lines for entries. Before it "COMMIT"-s, it builds up handle with one by one entry appended. Some memory spaces are not freed, each time an entry is inserted into handle.
We've been well aware of the memory leaks within the iptables / libiptc implementation. There have been several threads on it on the netfilter-devel mailinglist.
It's just that nobody got around actually doing something against those memory leaks. (And it is considered a minor issue, since both iptables and iptables-restore are one-shot programs, they are executed and terminate a very short time later).
Quoted 12 lines
So, in order to save the memory spaces, we should add
free(e); free(saddrs); free(daddrs); if(target) free(target->t); if(opts != original_opts) free(opts);
Quoted 8 lines
before
do_command()iniptables.creturns.In addition to that, we should also add
if(opts != original_opts) free(opts);before
merge_option()function returns.
would you mind implementing those changes and sending us a patch for it? That would help a lot.
If not, could you please submit this as a bug to http://bugzilla.netfilter.org/
Thanks!
Quoted 1 line
Primantara HT
Signature · 5 lines
- Harald Welte <[email protected]> http://www.netfilter.org/ ============================================================================ "Fragmentation is like classful addressing -- an interesting early architectural error that shows how much experimentation was going on while IP was being designed." -- Paul Vixie