[PKT_SCHED]: Fix memory leak when dumping in pedit action

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
diff --git a/net/sched/pedit.c b/net/sched/pedit.c
index b5167af..1742a68 100644
--- a/net/sched/pedit.c
+++ b/net/sched/pedit.c
@@ -245,10 +245,12 @@
 	t.lastuse = jiffies_to_clock_t(jiffies - p->tm.lastuse);
 	t.expires = jiffies_to_clock_t(p->tm.expires);
 	RTA_PUT(skb, TCA_PEDIT_TM, sizeof(t), &t);
+	kfree(opt);
 	return skb->len;
 
 rtattr_failure:
 	skb_trim(skb, b - skb->data);
+	kfree(opt);
 	return -1;
 }