diff options
author | Petri Lehtinen <petri@digip.org> | 2022-08-09 22:00:45 +0300 |
---|---|---|
committer | Petri Lehtinen <petri@digip.org> | 2022-08-09 22:00:45 +0300 |
commit | de5f2963ab59fa070590ae36c2c0b22ada7b60f7 (patch) | |
tree | 2cbe945f7bb87500effbe1a0cc6855799837c4fa /doc | |
parent | 128e9c5f376ac425f13d3b1cf9a38d53e544ad23 (diff) | |
download | jansson-de5f2963ab59fa070590ae36c2c0b22ada7b60f7.zip jansson-de5f2963ab59fa070590ae36c2c0b22ada7b60f7.tar.gz jansson-de5f2963ab59fa070590ae36c2c0b22ada7b60f7.tar.bz2 |
Add a missing json_decref in the example
Diffstat (limited to 'doc')
-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; } |