aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/agl-service-network-ctl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/agl-service-network-ctl.c b/test/agl-service-network-ctl.c
index 6808b8d..4be427a 100644
--- a/test/agl-service-network-ctl.c
+++ b/test/agl-service-network-ctl.c
@@ -405,11 +405,13 @@ bool add_property_value(json_object *jparent, const char *key, int argc, char *a
span = next_span(i + 1, argc, argv);
if (span < 0) {
+ json_object_put(jobj);
fprintf(stderr, "bad nesting\n");
return NULL;
}
if (!add_property_value(jobj, key2, span, argv + i + 1)) {
+ json_object_put(jobj);
fprintf(stderr, "error adding object\n");
return false;
}