Skip to content

Commit

Permalink
minor - destroying null object is always safe
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylt committed Jun 23, 2023
1 parent f2910f1 commit 9831d45
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 9831d45

Please sign in to comment.