From 91f0d73513ba5a0f87cff08851ff0dcd5d9476e6 Mon Sep 17 00:00:00 2001 From: Patrick McHardy Date: Fri, 28 May 2004 22:39:03 -0700 Subject: [PATCH] [IPV4]: Fix skb leak in igmpv3_newpack. --- net/ipv4/igmp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/ipv4/igmp.c b/net/ipv4/igmp.c index 99d46b4bc077..8d967a2783cb 100644 --- a/net/ipv4/igmp.c +++ b/net/ipv4/igmp.c @@ -292,6 +292,7 @@ static struct sk_buff *igmpv3_newpack(struct net_device *dev, int size) } } if (rt->rt_src == 0) { + kfree_skb(skb); ip_rt_put(rt); return 0; } -- 2.39.5