| 1005 | } |
| 1006 | |
| 1007 | struct ref *copy_ref_list(const struct ref *ref) |
| 1008 | { |
| 1009 | struct ref *ret = NULL; |
| 1010 | struct ref **tail = &ret; |
| 1011 | while (ref) { |
| 1012 | *tail = copy_ref(ref); |
| 1013 | ref = ref->next; |
| 1014 | tail = &((*tail)->next); |
| 1015 | } |
| 1016 | return ret; |
| 1017 | } |
| 1018 | |
| 1019 | void free_one_ref(struct ref *ref) |
| 1020 | { |
no test coverage detected