Projects
Eulaceura:Mainline:GA
yajl
_service:obs_scm:0006-fix-memory-leak-of-ctx-ro...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:0006-fix-memory-leak-of-ctx-root.patch of Package yajl
From d6d0aeb5f6432763929d4096344ec2caf6d13d89 Mon Sep 17 00:00:00 2001 From: haozi007 <liuhao27@huawei.com> Date: Sat, 28 May 2022 10:06:46 +0100 Subject: [PATCH] fix memory leak of ctx root Signed-off-by: haozi007 <liuhao27@huawei.com> --- src/yajl_tree.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/yajl_tree.c b/src/yajl_tree.c index 4b3cf2b..dc55f74 100644 --- a/src/yajl_tree.c +++ b/src/yajl_tree.c @@ -449,6 +449,9 @@ yajl_val yajl_tree_parse (const char *input, yajl_tree_free(v); } yajl_free (handle); + //If the requested memory is not released in time, it will cause memory leakage + if(ctx.root) + yajl_tree_free(ctx.root); return NULL; } -- 2.20.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2