aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/proto.c
diff options
context:
space:
mode:
authorGerrit Renker <gerrit@erg.abdn.ac.uk>2008-09-04 01:30:19 -0400
committerGerrit Renker <gerrit@erg.abdn.ac.uk>2008-09-04 01:45:26 -0400
commit702083839b607f390dbed5d2304eb8fc5f4c85ac (patch)
tree08e042059da89626580ceddec6bebefaf8267115 /net/dccp/proto.c
parent828755cee087e4a34f45d6c9db661ccd0631cc6d (diff)
dccp: Cleanup routines for feature negotiation
This inserts the required de-allocation routines for memory allocated by feature negotiation in the socket destructors, replacing dccp_feat_clean() in one instance. Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk> Acked-by: Ian McDonald <ian.mcdonald@jandi.co.nz>
Diffstat (limited to 'net/dccp/proto.c')
-rw-r--r--net/dccp/proto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dccp/proto.c b/net/dccp/proto.c
index 1cdf4ae99605..dafcefd86594 100644
--- a/net/dccp/proto.c
+++ b/net/dccp/proto.c
@@ -268,7 +268,7 @@ void dccp_destroy_sock(struct sock *sk)
268 dp->dccps_hc_rx_ccid = dp->dccps_hc_tx_ccid = NULL; 268 dp->dccps_hc_rx_ccid = dp->dccps_hc_tx_ccid = NULL;
269 269
270 /* clean up feature negotiation state */ 270 /* clean up feature negotiation state */
271 dccp_feat_clean(dmsk); 271 dccp_feat_list_purge(&dp->dccps_featneg);
272} 272}
273 273
274EXPORT_SYMBOL_GPL(dccp_destroy_sock); 274EXPORT_SYMBOL_GPL(dccp_destroy_sock);