summaryrefslogtreecommitdiff
path: root/src/libstddjb/stralloc_free.c
blob: 889b2ca145633f22c67113b4cadcfed559e20e8f (plain)
1
2
3
4
5
6
7
8
9
10
/* ISC license. */

#include <skalibs/alloc.h>
#include <skalibs/stralloc.h>

void stralloc_free (stralloc *sa)
{
  alloc_free(sa->s) ;
  *sa = stralloc_zero ;
}