aboutsummaryrefslogtreecommitdiff
path: root/modules/benchmark.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/benchmark.c')
-rw-r--r--modules/benchmark.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/benchmark.c b/modules/benchmark.c
index ccdef342..e0d61eab 100644
--- a/modules/benchmark.c
+++ b/modules/benchmark.c
@@ -451,10 +451,8 @@ static GSList *benchmark_include_results_json(const gchar *path,
goto out;
root = json_parser_get_root(parser);
- if (json_node_get_node_type(root) != JSON_NODE_OBJECT) {
- json_node_unref(root);
+ if (json_node_get_node_type(root) != JSON_NODE_OBJECT)
goto out;
- }
JsonObject *results = json_node_get_object(root);
if (results) {