From: Michal MalĂ˝ Date: Wed, 13 Aug 2014 16:39:03 +0000 (+0200) Subject: Free command stream once its processed X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=f425ed17d7540e67b49d208cd19750cc3f44975e;p=KLGD.git Free command stream once its processed --- 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);