From f425ed17d7540e67b49d208cd19750cc3f44975e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Wed, 13 Aug 2014 18:39:03 +0200 Subject: [PATCH] Free command stream once its processed --- klgd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/klgd.c b/klgd.c index ce7580b..e20c1cf 100644 --- a/klgd.c +++ b/klgd.c @@ -166,6 +166,7 @@ static void klgd_delayed_work(struct work_struct *w) printk(KERN_NOTICE "KLGD/WQ: Unable to send command stream, ret code %d\n", ret); } else printk(KERN_NOTICE "KLGD/WQ: Commands sent, time elapsed %u [msec]\n", jiffies_to_msecs(jiffies - now)); + kfree(s); out: mutex_unlock(&priv->send_lock); -- 2.43.5