net: fix a memleak when uncloning an skb dst and its metadata
[linux-2.6-microblaze.git] / include / net / dst_metadata.h
index b997e0c..adab27b 100644 (file)
@@ -137,7 +137,6 @@ static inline struct metadata_dst *tun_dst_unclone(struct sk_buff *skb)
 #endif
 
        skb_dst_drop(skb);
-       dst_hold(&new_md->dst);
        skb_dst_set(skb, &new_md->dst);
        return new_md;
 }