From: Felix Fietkau Date: Sun, 25 May 2014 19:29:36 +0000 (+0200) Subject: service: fix json object leak in validate code X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=54829607535631a6701a16113c95a0c09cbd45d8;p=oweals%2Fprocd.git service: fix json object leak in validate code Signed-off-by: Felix Fietkau --- 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