aboutsummaryrefslogblamecommitdiffstats
path: root/libaxl_context_free.c
blob: c86f9de8a23a6b38afb26f042cc17d44aec7946c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                         
/* 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);
	}
}