| 125 | } |
| 126 | |
| 127 | void |
| 128 | free_omonst(struct obj *otmp) |
| 129 | { |
| 130 | if (otmp->oextra) { |
| 131 | struct monst *m = OMONST(otmp); |
| 132 | |
| 133 | if (m) { |
| 134 | if (m->mextra) |
| 135 | dealloc_mextra(m); |
| 136 | free((genericptr_t) m); |
| 137 | OMONST(otmp) = (struct monst *) 0; |
| 138 | } |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | void |
| 143 | newomid(struct obj *otmp) |
no test coverage detected