]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
workqueue: fix memory leak in apply_workqueue_attrs()
authorTejun Heo <tj@kernel.org>
Mon, 1 Apr 2013 18:23:31 +0000 (11:23 -0700)
committerTejun Heo <tj@kernel.org>
Mon, 1 Apr 2013 18:23:31 +0000 (11:23 -0700)
commit4862125b0256a946d2749a1d5003b0604bc3cb4d
tree0091a7104afb64d1ae7db22b880a8f5975ba2dab
parent13e2e556013a543eebd238d1c2759195e3c0c9fc
workqueue: fix memory leak in apply_workqueue_attrs()

apply_workqueue_attrs() wasn't freeing temp attrs variable @new_attrs
in its success path.  Fix it.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Lai Jiangshan <laijs@cn.fujitsu.com>
kernel/workqueue.c