aboutsummaryrefslogblamecommitdiffstats
path: root/libaxl_context_free.c
blob: 91ce159138feef647f5486357d887a6ac6c68586 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                         
                                   


                          
/* See LICENSE file for copyright and license details. */
#include "common.h"

void
libaxl_context_free(LIBAXL_CONTEXT *ctx)
{
	if (ctx && !--ctx->refcount) {
		free(ctx->out_buf);
		free(ctx->in_buf);
		free(ctx->aux_buf);
		free(ctx);
	}
}