summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/ubjson/ubjr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/ubjson/ubjr.c b/src/lib/ubjson/ubjr.c
index 4a5ba97..afa357b 100644
--- a/src/lib/ubjson/ubjr.c
+++ b/src/lib/ubjson/ubjr.c
@@ -57,6 +57,7 @@ ubjr_context_t* ubjr_open_callback(void* userdata,
size_t ubjr_close_context(ubjr_context_t* ctx)
{
size_t n = ctx->total_read;
+ free(ctx->userdata);
free(ctx);
return n;
}