diff --git a/backends/ref/ceed-ref-operator.c b/backends/ref/ceed-ref-operator.c index b53aa14e80..4c62608d49 100644 --- a/backends/ref/ceed-ref-operator.c +++ b/backends/ref/ceed-ref-operator.c @@ -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));