found some small leaks with Purify
This commit is contained in:
parent
439ec389a0
commit
bcff9862e7
|
@ -67,7 +67,10 @@ outpart(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
|
||||
|
@ -109,7 +112,9 @@ C_out_parts(pp)
|
|||
}
|
||||
#endif
|
||||
}
|
||||
prev = pp;
|
||||
pp = pp->pp_next;
|
||||
free((char *) prev);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue