Skip to content

Commit 6be9dae

Browse files
committed
XXX: nvidia: comment about memory leak
1 parent f3d4359 commit 6be9dae

File tree

1 file changed

+2
-0
lines changed
  • src/nvidia/arch/nvalloc/unix/src

1 file changed

+2
-0
lines changed

src/nvidia/arch/nvalloc/unix/src/osinit.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1635,6 +1635,8 @@ NvBool RmInitPrivateState(
16351635
// Only certain Tegra PCI iGPUs support Rail-Gating
16361636
pNv->supports_tegra_igpu_rg = pNv->is_tegra_pci_igpu && pGpuArch->bGpuarchSupportsIgpuRg;
16371637

1638+
// XXX: objDelete(pGpuArch) as it's dynamically allocated, see src/nvidia/src/kernel/gpu_mgr/gpu_mgr.c:gpumgrGetGpuArch_IMPL()
1639+
16381640
kvgpumgrAttachGpu(pNv->gpu_id);
16391641

16401642
os_mem_set(nvp, 0, sizeof(*nvp));

0 commit comments

Comments
 (0)