Commit 4ef92892 authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau: fix obvious memory leak

fdo#104340.
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 74a39954
...@@ -67,8 +67,8 @@ nouveau_vma_del(struct nouveau_vma **pvma) ...@@ -67,8 +67,8 @@ nouveau_vma_del(struct nouveau_vma **pvma)
nvif_vmm_put(&vma->vmm->vmm, &tmp); nvif_vmm_put(&vma->vmm->vmm, &tmp);
} }
list_del(&vma->head); list_del(&vma->head);
*pvma = NULL;
kfree(*pvma); kfree(*pvma);
*pvma = NULL;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment