| 365 | } |
| 366 | |
| 367 | void ggml_gallocr_free(ggml_gallocr_t galloc) { |
| 368 | if (galloc == NULL) { |
| 369 | return; |
| 370 | } |
| 371 | |
| 372 | if (galloc->hash_set.keys != NULL) { |
| 373 | free(galloc->hash_set.keys); |
| 374 | } |
| 375 | if (galloc->hash_values != NULL) { |
| 376 | free(galloc->hash_values); |
| 377 | } |
| 378 | if (galloc->hash_allocs != NULL) { |
| 379 | free(galloc->hash_allocs); |
| 380 | } |
| 381 | if (galloc->parse_seq != NULL) { |
| 382 | free(galloc->parse_seq); |
| 383 | } |
| 384 | free(galloc); |
| 385 | } |
| 386 | |
| 387 | void ggml_gallocr_set_parse_seq(ggml_gallocr_t galloc, const int * list, int n) { |
| 388 | free(galloc->parse_seq); |
no outgoing calls
no test coverage detected