Skip to content

Commit

Permalink
Merge pull request #1693 from CEED/zach/fix-mem-leak
Browse files Browse the repository at this point in the history
Fix memory leak
  • Loading branch information
zatkins-dev authored Oct 14, 2024
2 parents 748f74a + bbac207 commit 95f7ac9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backends/ref/ceed-ref-operator.c
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,11 @@ static inline int CeedOperatorOutputBasisAtPoints_Ref(CeedInt e, CeedInt num_poi
}
}
// Restrict output block
if (skip_rstr[i]) continue;
if (skip_rstr[i]) {
CeedCallBackend(CeedElemRestrictionDestroy(&elem_rstr));
continue;
}

// Get output vector
CeedCallBackend(CeedElemRestrictionGetType(elem_rstr, &rstr_type));
CeedCallBackend(CeedOperatorFieldGetVector(op_output_fields[i], &vec));
Expand Down

0 comments on commit 95f7ac9

Please sign in to comment.