]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[INET]: Small possible memory leak in FIB rules
authorDenis V. Lunev <den@openvz.org>
Sun, 11 Nov 2007 06:12:03 +0000 (22:12 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Nov 2007 06:12:03 +0000 (22:12 -0800)
commit2994c63863ac350c4c8c6a65d8110749c2abb95c
tree5509f71222641098683df1b1e0ff7bdfc2758b2c
parent33d36bb83c5b566c98a441e791736e25dbc35fc3
[INET]: Small possible memory leak in FIB rules

This patch fixes a small memory leak. Default fib rules can be deleted by
the user if the rule does not carry FIB_RULE_PERMANENT flag, f.e. by
ip rule flush

Such a rule will not be freed as the ref-counter has 2 on start and becomes
clearly unreachable after removal.

Signed-off-by: Denis V. Lunev <den@openvz.org>
Acked-by: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/fib_rules.h
net/core/fib_rules.c
net/decnet/dn_rules.c
net/ipv4/fib_rules.c
net/ipv6/fib6_rules.c