drm/nouveau: Do not leak client objects
authorThierry Reding <treding@nvidia.com>
Thu, 16 Oct 2014 09:54:54 +0000 (11:54 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 27 Jul 2015 08:56:07 +0000 (18:56 +1000)
commitf5654d9555b470d05be9d6d26cfb8fb79239ac3e
tree16a23be0e0970976569e5f70bd70e6d6079e4631
parent9694554691d26226f84fa1d6f500b7e7c9288510
drm/nouveau: Do not leak client objects

The memory allocated for a nouveau_cli object in nouveau_cli_create() is
never freed. Free the memory in nouveau_cli_destroy() to plug this leak.

kmemleak recorded this after running a couple of nouveau test programs.
Note that kmemleak points at drm_open_helper() because for some reason
it thinks that skipping the first two stack frames is a good idea.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_drm.c