Skip to content

Commit

Permalink
Merge pull request #1242 from CEED/jeremy/contract-destroy-cleanup
Browse files Browse the repository at this point in the history
Remove unneeded guard in BasisDestroy
  • Loading branch information
jrwrigh authored Jun 26, 2023
2 parents f2910f1 + 9831d45 commit d1ca5d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interface/ceed-basis.c
Original file line number Diff line number Diff line change
Expand Up @@ -1686,7 +1686,7 @@ int CeedBasisDestroy(CeedBasis *basis) {
return CEED_ERROR_SUCCESS;
}
if ((*basis)->Destroy) CeedCall((*basis)->Destroy(*basis));
if ((*basis)->contract) CeedCall(CeedTensorContractDestroy(&(*basis)->contract));
CeedCall(CeedTensorContractDestroy(&(*basis)->contract));
CeedCall(CeedFree(&(*basis)->q_ref_1d));
CeedCall(CeedFree(&(*basis)->q_weight_1d));
CeedCall(CeedFree(&(*basis)->interp));
Expand Down

0 comments on commit d1ca5d5

Please sign in to comment.