Commits

Lisandro Dalcin committed 592a725

Free boundary functions in IGABoundaryClear()

Comments (0)

Files changed (1)

src/petigabound.c

   PetscValidPointer(boundary,1);
   boundary->count = 0;
   boundary->nload = 0;
-  if (boundary->userops) {ierr = PetscMemzero(boundary->userops,sizeof(struct _IGAUserOps));CHKERRQ(ierr);}
+  ierr = PetscFree(boundary->userops);CHKERRQ(ierr);
   PetscFunctionReturn(0);
 }