| 4642 | } |
| 4643 | |
| 4644 | void diff_free_filespec_blob(struct diff_filespec *s) |
| 4645 | { |
| 4646 | if (s->should_free) |
| 4647 | free(s->data); |
| 4648 | else if (s->should_munmap) |
| 4649 | munmap(s->data, s->size); |
| 4650 | |
| 4651 | if (s->should_free || s->should_munmap) { |
| 4652 | s->should_free = s->should_munmap = 0; |
| 4653 | s->data = NULL; |
| 4654 | } |
| 4655 | } |
| 4656 | |
| 4657 | void diff_free_filespec_data(struct diff_filespec *s) |
| 4658 | { |
no outgoing calls
no test coverage detected