X-Git-Url: http://git.archive.openwrt.org/?p=project%2Ffirewall3.git;a=blobdiff_plain;f=iptables.c;h=2684933970ef26d08bbbeaafffbaaa5fe0cf9fb8;hp=cea3fcd92b60a22fc188091f76409f2467aafdcd;hb=ace34d11e3874a26a347e346ee405a2ad605a8ae;hpb=a93d95470803e9026c725fc7081ac8a06191ea6a diff --git a/iptables.c b/iptables.c index cea3fcd..2684933 100644 --- a/iptables.c +++ b/iptables.c @@ -1271,7 +1271,9 @@ free: xtables_rule_matches_free(&r->matches); - free(r->target->t); + if (r->target) + free(r->target->t); + free(r); /* reset all targets and matches */