+ /* Free it from all the parent domains, cleaning up as we go.. */
+ for(smdp=mdp;smdp;smdp=nmdp) {
+ nmdp=smdp->parent;
+
+ /* Keep it if there are users left or we're remembering something about it. */
+ if (--smdp->count || (smdp->flags != MDFLAG_DEFAULT) || (smdp->actlimit != MD_DEFAULTACTLIMIT))
+ continue;
+
+ removemaildomainfromhash(smdp);
+ freesstring(smdp->name);
+ freemaildomain(smdp);