Skip to content

Commit

Permalink
[DCCP]: dccp_v(4|6)_ctl_socket is leaked.
Browse files Browse the repository at this point in the history
This seems a purism as module can't be unloaded, but though if cleanup
method is present it should be correct and clean all staff created.

Signed-off-by: Denis V. Lunev <[email protected]>
Acked-by: Arnaldo Carvalho de Melo <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Denis V. Lunev authored and davem330 committed Apr 3, 2008
1 parent 7630f02 commit 4f049b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions net/dccp/ipv4.c
Original file line number Diff line number Diff line change
Expand Up @@ -1020,6 +1020,7 @@ static int __init dccp_v4_init(void)

static void __exit dccp_v4_exit(void)
{
sock_release(dccp_v4_ctl_sk->sk_socket);
inet_unregister_protosw(&dccp_v4_protosw);
inet_del_protocol(&dccp_v4_protocol, IPPROTO_DCCP);
proto_unregister(&dccp_v4_prot);
Expand Down
1 change: 1 addition & 0 deletions net/dccp/ipv6.c
Original file line number Diff line number Diff line change
Expand Up @@ -1202,6 +1202,7 @@ static int __init dccp_v6_init(void)

static void __exit dccp_v6_exit(void)
{
sock_release(dccp_v6_ctl_sk->sk_socket);
inet6_del_protocol(&dccp_v6_protocol, IPPROTO_DCCP);
inet6_unregister_protosw(&dccp_v6_protosw);
proto_unregister(&dccp_v6_prot);
Expand Down

0 comments on commit 4f049b4

Please sign in to comment.