X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fprocd.git;a=blobdiff_plain;f=service%2Fvalidate.c;h=a33a48e4a7bb0d97e98446dcf6cd66f8fc9d677e;hp=2e610c7268af6cc86acf0c6e020b6847f85a9d17;hb=566ca65a3b2c35de811dbd895e2c024e250c6b28;hpb=5659c8226cc7b0d09ab255525f8951e35cf6ac2a diff --git a/service/validate.c b/service/validate.c index 2e610c7..a33a48e 100644 --- a/service/validate.c +++ b/service/validate.c @@ -13,6 +13,7 @@ #include #include +#include #include "../procd.h" @@ -66,6 +67,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