iptables: missing free() in function delete_entry()
PATCH 1/1 iptables: missing free() in function delete_entry()
From: Franz Flasch <[email protected]>
Fixed a memory leak in the dry run path of function delete_entry().
Signed-off-by Franz Flasch <[email protected]>
Signed-off-by Christian Engelmayer <[email protected]>
---
libiptc/libiptc.c +3 -1
@@ -2001,8 +2001,10 @@ static int delete_entry(const IPT_CHAINLcontinue ;/* if we are just doing a dry run, we simply skip the rest */ -if (dry_run) +if (dry_run){ +free (r);return 1 ; + }/* If we are about to delete the rule that is the * current iterator, move rule iterator back. next
Quoted 3 lines · Christian Engelmayer
From: Franz Flasch <[email protected]>
Fixed a memory leak in the dry run path of function
delete_entry().
Applied, thanks.
For your notice: I have put these in the master branch to skip the overhead of maintaining -stable for the little amount of changes we have had this time.
Since linux 3.3 is approaching, expect a new iptables release soon.