X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fubus.git;a=blobdiff_plain;f=examples%2Fclient.c;h=7ef566347e540f8d9e096552b8244f6cc3a0e5f5;hp=952ab549453abbcf803d7eef9070d11cfd4c4d82;hb=38174a05a58629faf4b86a6dd34c00bb8c6904f2;hpb=7798d56301b7264cbcea0a6a9225a210154c693a diff --git a/examples/client.c b/examples/client.c index 952ab54..7ef5663 100644 --- a/examples/client.c +++ b/examples/client.c @@ -118,6 +118,7 @@ static void test_count(struct uloop_timeout *timeout) blobmsg_add_string(&b, "string", s); if (ubus_lookup_id(ctx, "test", &id)) { + free(s); fprintf(stderr, "Failed to look up test object\n"); return; }