summaryrefslogtreecommitdiff
path: root/src/libs6dns/s6dns_engine_free.c
blob: cfee465b70eaae93cf5ac13b82db9ab0fadf5246 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* ISC license. */

#include <skalibs/stralloc.h>
#include <s6-dns/s6dns-engine.h>

void s6dns_engine_free (s6dns_engine_t *dt)
{
  s6dns_engine_recycle(dt) ;
  stralloc_free(&dt->sa) ;
  *dt = s6dns_engine_zero ;
}