| 355 | } |
| 356 | |
| 357 | static void free_discovery(struct discovery *d) |
| 358 | { |
| 359 | if (d) { |
| 360 | if (d == last_discovery) |
| 361 | last_discovery = NULL; |
| 362 | free(d->shallow.oid); |
| 363 | free(d->buf_alloc); |
| 364 | free_refs(d->refs); |
| 365 | free(d->service); |
| 366 | free(d); |
| 367 | } |
| 368 | } |
| 369 | |
| 370 | static int show_http_message(struct strbuf *type, struct strbuf *charset, |
| 371 | struct strbuf *msg) |
no test coverage detected