From 54829607535631a6701a16113c95a0c09cbd45d8 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 25 May 2014 21:29:36 +0200 Subject: [PATCH] service: fix json object leak in validate code Signed-off-by: Felix Fietkau --- service/validate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/service/validate.c b/service/validate.c index 2e610c7..3312d1d 100644 --- a/service/validate.c +++ b/service/validate.c @@ -66,6 +66,7 @@ service_validate_dump_all(struct blob_buf *b, char *p, char *s) json_object_object_add(t, vr->option, json_object_new_string(vr->rule)); } blobmsg_add_object(b, r); + json_object_put(r); } void -- 2.30.2