| 33 | static void *create_master_row_for_view(struct dbview *view, int *sz); |
| 34 | |
| 35 | inline int destroy_sqlite_master(master_entry_t *arr, int arr_len) |
| 36 | { |
| 37 | if (!arr) |
| 38 | return 0; |
| 39 | |
| 40 | for (int i = 0; i < arr_len; i++) { |
| 41 | master_entry_t *ent = &arr[i]; |
| 42 | if (ent->isstrdup) |
| 43 | free(ent->tblname); |
| 44 | free(ent->entry); |
| 45 | } |
| 46 | free(arr); |
| 47 | return 0; |
| 48 | } |
| 49 | |
| 50 | /* accessor called from comdb2.c clean_exit() */ |
| 51 | void cleanup_sqlite_master() |
no test coverage detected