Add a missing json_decref in the example
This commit is contained in:
parent
128e9c5f37
commit
de5f2963ab
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user