| 3563 | } |
| 3564 | |
| 3565 | static void free_query_list(cdb2_query_list *head) |
| 3566 | { |
| 3567 | cdb2_query_list *ditem; |
| 3568 | while (head != NULL) { |
| 3569 | ditem = head; |
| 3570 | head = head->next; |
| 3571 | free(ditem->sql); |
| 3572 | free(ditem->buf); |
| 3573 | free(ditem); |
| 3574 | } |
| 3575 | } |
| 3576 | |
| 3577 | /* Free query list and reset the pointer. */ |
| 3578 | static inline void free_query_list_on_handle(cdb2_hndl_tp *hndl) |
no test coverage detected