Skip to content

Commit

Permalink
Fix indexing in init_event_table to free allocated memory.
Browse files Browse the repository at this point in the history
  • Loading branch information
Treece Burgess committed Feb 12, 2025
1 parent b19ea13 commit 3d06eba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/cuda/cupti_profiler.c
Original file line number Diff line number Diff line change
Expand Up @@ -1999,7 +1999,7 @@ int init_event_table(void)
NVPW_MetricsContext_GetMetricNames_End_Params getMetricNameEndParams = {
.structSize = NVPW_MetricsContext_GetMetricNames_End_Params_STRUCT_SIZE,
.pPriv = NULL,
.pMetricsContext = cuptiu_table_p->avail_gpu_info[gpu_idx].pmetricsContextCreateParams->pMetricsContext,
.pMetricsContext = cuptiu_table_p->avail_gpu_info[table_idx].pmetricsContextCreateParams->pMetricsContext,
};
nvpwCheckErrors( NVPW_MetricsContext_GetMetricNames_EndPtr((NVPW_MetricsContext_GetMetricNames_End_Params *) &getMetricNameEndParams), goto fn_fail );
}
Expand Down

0 comments on commit 3d06eba

Please sign in to comment.