]> Devoid-pointer.net GitWeb - KLGD.git/commitdiff
Free command stream once its processed
authorMichal Malý <madcatxster@devoid-pointer.net>
Wed, 13 Aug 2014 16:39:03 +0000 (18:39 +0200)
committerMichal Malý <madcatxster@devoid-pointer.net>
Wed, 13 Aug 2014 16:39:03 +0000 (18:39 +0200)
klgd.c

diff --git a/klgd.c b/klgd.c
index ce7580bedaf46698f66cd40a82dd3b46885dda63..e20c1cf4b73824bcad6ed826b4007ac474348272 100644 (file)
--- 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);