diff options
author | Petri Lehtinen <petri@digip.org> | 2022-08-09 22:05:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-09 22:05:05 +0300 |
commit | 011e62576949b9167710a4f4ee9a0a97d892a2e1 (patch) | |
tree | 2cbe945f7bb87500effbe1a0cc6855799837c4fa | |
parent | 128e9c5f376ac425f13d3b1cf9a38d53e544ad23 (diff) | |
parent | de5f2963ab59fa070590ae36c2c0b22ada7b60f7 (diff) | |
download | jansson-011e62576949b9167710a4f4ee9a0a97d892a2e1.zip jansson-011e62576949b9167710a4f4ee9a0a97d892a2e1.tar.gz jansson-011e62576949b9167710a4f4ee9a0a97d892a2e1.tar.bz2 |
Merge pull request #626 from akheron/fix-example
Add a missing json_decref in the example
-rw-r--r-- | doc/github_commits.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/github_commits.c b/doc/github_commits.c index c020f46..81c8063 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; } |