cpuquiet: Clean up sysfs memory properly
[firefly-linux-kernel-4.4.55.git] / drivers / cpuquiet / governors / runnable_threads.c
index 79ba69d8057afcdea7d44830f8119a8e625863c2..f20b8c71e3842d6100feb185d0f259ae9fb29b77 100644 (file)
@@ -265,6 +265,7 @@ static void runnables_stop(void)
        del_timer_sync(&runnables_timer);
        cancel_work_sync(&runnables_work);
        kobject_put(runnables_kobject);
+       kfree(runnables_kobject);
 
        mutex_unlock(&runnables_lock);
 }