found some small leaks with Purify

This commit is contained in:
ceriel
1993-01-18 15:29:54 +00:00
parent d858cd7e1b
commit 551396bc5b

View File

@@ -67,7 +67,10 @@ outpart(id)
*/ */
Part *p = C_findpart(id); Part *p = C_findpart(id);
if (p) C_out_parts(p->p_parts); if (p) {
C_out_parts(p->p_parts);
p->p_parts = 0;
}
} }
static static
@@ -109,7 +112,9 @@ C_out_parts(pp)
} }
#endif #endif
} }
prev = pp;
pp = pp->pp_next; pp = pp->pp_next;
free((char *) prev);
} }
} }