| 93 | } |
| 94 | |
| 95 | void |
| 96 | dealloc_oextra(struct obj *o) |
| 97 | { |
| 98 | struct oextra *x = o->oextra; |
| 99 | |
| 100 | if (x) { |
| 101 | if (x->oname) |
| 102 | free((genericptr_t) x->oname), x->oname = 0; |
| 103 | if (x->omonst) |
| 104 | free_omonst(o); /* note: pass 'o' rather than 'x' */ |
| 105 | if (x->omailcmd) |
| 106 | free((genericptr_t) x->omailcmd), x->omailcmd = 0; |
| 107 | |
| 108 | free((genericptr_t) x); |
| 109 | o->oextra = (struct oextra *) 0; |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | void |
| 114 | newomonst(struct obj *otmp) |
no test coverage detected