瀏覽代碼

dell-laptop: Fix small memory leak

da_tokens was not being freed by dell-laptop on unload. Fix that.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Matthew Garrett 15 年之前
父節點
當前提交
e551260b23
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/platform/x86/dell-laptop.c

+ 1 - 0
drivers/platform/x86/dell-laptop.c

@@ -478,6 +478,7 @@ static void __exit dell_exit(void)
 		platform_device_del(platform_device);
 		platform_driver_unregister(&platform_driver);
 	}
+	kfree(da_tokens);
 }
 
 module_init(dell_init);