diff options
author | Daniel Friesel <derf@finalrewind.org> | 2018-11-28 13:47:03 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2018-11-28 13:47:03 +0100 |
commit | bed25c675e3558254d335e0a3069849d4dfc4942 (patch) | |
tree | 9a072d0f61f044accf862d8d854992302c240c42 /src/lib | |
parent | 1542f34f0e0fc53324f6fdc5905f4b77b252a789 (diff) |
fix memory leak in ubjson reader
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/ubjson/ubjr.c | 1 |
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;
}
|