Projects
Eulaceura:Factory
jansson
_service:obs_scm:Add-a-missing-json_decref-in-t...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:Add-a-missing-json_decref-in-the-example.patch of Package jansson
From de5f2963ab59fa070590ae36c2c0b22ada7b60f7 Mon Sep 17 00:00:00 2001 From: Petri Lehtinen <petri@digip.org> Date: Tue, 9 Aug 2022 22:00:45 +0300 Subject: [PATCH] Add a missing json_decref in the example --- doc/github_commits.c | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/github_commits.c b/doc/github_commits.c index c020f46e..81c80639 100644 --- a/doc/github_commits.c +++ b/doc/github_commits.c @@ -153,6 +153,7 @@ int main(int argc, char *argv[]) { sha = json_object_get(data, "sha"); if (!json_is_string(sha)) { fprintf(stderr, "error: commit %d: sha is not a string\n", (int)(i + 1)); + json_decref(root); return 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