Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix memory leak in the as_is decomposition handler #1365

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions ldms/src/decomp/as_is/decomp_as_is.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ static void __decomp_as_is_cfg_free(__decomp_as_is_cfg_t dcfg)
free(didx->col_idx);
free(didx->name);
}
free(dcfg->idxs);
free(dcfg);
}

Expand Down Expand Up @@ -588,8 +589,6 @@ __get_row_cfg(__decomp_as_is_cfg_t dcfg, ldms_set_t set)
}
if (drow->idxs) {
for (i = 0; i < drow->idx_count; i++) {
if (!drow->idxs[i].col_idx)
continue;
free(drow->idxs[i].col_idx);
}
free(drow->idxs);
Expand Down
Loading