ath10k: fix memleak in mac setup
[cascardo/linux.git] / net / ipv4 / fib_semantics.c
index 8f6cb7a..d5dbca5 100644 (file)
@@ -169,7 +169,8 @@ static void free_nh_exceptions(struct fib_nh *nh)
                        
                        next = rcu_dereference_protected(fnhe->fnhe_next, 1);
 
-                       rt_fibinfo_free(&fnhe->fnhe_rth);
+                       rt_fibinfo_free(&fnhe->fnhe_rth_input);
+                       rt_fibinfo_free(&fnhe->fnhe_rth_output);
 
                        kfree(fnhe);