| 1051 | } |
| 1052 | |
| 1053 | static void |
| 1054 | tcp_log_free_entries(struct tcp_log_stailq *head, int *count) |
| 1055 | { |
| 1056 | struct tcp_log_mem *log_entry; |
| 1057 | |
| 1058 | /* Free the entries. */ |
| 1059 | while ((log_entry = STAILQ_FIRST(head)) != NULL) { |
| 1060 | STAILQ_REMOVE_HEAD(head, tlm_queue); |
| 1061 | tcp_log_entry_refcnt_rem(log_entry); |
| 1062 | tcp_log_free_log_common(log_entry, count); |
| 1063 | } |
| 1064 | } |
| 1065 | |
| 1066 | /* Cleanup after removing a log entry. */ |
| 1067 | static inline void |
no test coverage detected