summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-11-28 13:47:03 +0100
committerDaniel Friesel <derf@finalrewind.org>2018-11-28 13:47:03 +0100
commitbed25c675e3558254d335e0a3069849d4dfc4942 (patch)
tree9a072d0f61f044accf862d8d854992302c240c42 /src
parent1542f34f0e0fc53324f6fdc5905f4b77b252a789 (diff)
fix memory leak in ubjson reader
Diffstat (limited to 'src')
-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;
}