Skip to content

Commit dc8a82a

Browse files
xemuldavem330
authored andcommitted
[IPV6]: Fix memory leak in cleanup_ipv6_mibs()
The icmpv6msg mib statistics is not freed. This is almost not critical for current kernel, since ipv6 module is unloadable, but this can happen on load error and will happen every time we stop the network namespace (when we have one, of course). Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Acked-by: David L Stevens <dlstevens@us.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 0c2bef4 commit dc8a82a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎net/ipv6/af_inet6.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -747,6 +747,7 @@ static void cleanup_ipv6_mibs(void)
747747
{
748748
snmp_mib_free((void **)ipv6_statistics);
749749
snmp_mib_free((void **)icmpv6_statistics);
750+
snmp_mib_free((void **)icmpv6msg_statistics);
750751
snmp_mib_free((void **)udp_stats_in6);
751752
snmp_mib_free((void **)udplite_stats_in6);
752753
}

0 commit comments

Comments
 (0)