diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-05-25 21:29:36 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-05-25 21:29:36 +0200 |
commit | 54829607535631a6701a16113c95a0c09cbd45d8 (patch) | |
tree | a6ca4f25f609b9791e17587fa8d867b64bd077b3 | |
parent | 1a555f67c7de2b942aa188840ab97fb0e518c1ca (diff) | |
download | unitd-54829607535631a6701a16113c95a0c09cbd45d8.tar unitd-54829607535631a6701a16113c95a0c09cbd45d8.zip |
service: fix json object leak in validate code
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-rw-r--r-- | service/validate.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 |