| 315 | } |
| 316 | |
| 317 | int unmap_file(struct map_struct *map) |
| 318 | { |
| 319 | int ret; |
| 320 | |
| 321 | if (map->p) { |
| 322 | free(map->p); |
| 323 | map->p = NULL; |
| 324 | } |
| 325 | ret = map->status; |
| 326 | #if 0 /* I don't think we really need this. */ |
| 327 | force_memzero(map, sizeof map[0]); |
| 328 | #endif |
| 329 | free(map); |
| 330 | |
| 331 | return ret; |
| 332 | } |
no test coverage detected