Skip to content

Commit

Permalink
dell-laptop: Fix small memory leak
Browse files Browse the repository at this point in the history
da_tokens was not being freed by dell-laptop on unload. Fix that.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
  • Loading branch information
Matthew Garrett committed Feb 25, 2010
1 parent facd61d commit e551260
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/platform/x86/dell-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e551260

Please sign in to comment.