]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - drivers/platform/x86/wmi.c
WMI: do not leak memory in parse_wdg()
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 26 Aug 2010 07:14:58 +0000 (00:14 -0700)
committerMatthew Garrett <mjg@redhat.com>
Thu, 21 Oct 2010 13:36:47 +0000 (09:36 -0400)
commit64ed0ab8d060d28a7787de29c76178c2efc1dd65
tree0fb02e7d696f310886a9e57c01130322fc60e3e8
parent4e4304d7498c85f6ea798ee5fcb5d3bd3741e74f
WMI: do not leak memory in parse_wdg()

If we _WDG returned object that is not buffer we were forgetting
to free memory allocated for that object.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/wmi.c