if (ret)
fprintf(stderr, "Failed to send reply: %s\n", ubus_strerror(ret));
+ blob_buf_free(&b);
+
return ret;
}
if (ret)
fprintf(stderr, "Failed to send reply: %s\n", ubus_strerror(ret));
+ blob_buf_free(&b);
+
return ret;
}
if (ret)
fprintf(stderr, "Failed to send reply: %s\n", ubus_strerror(ret));
+ blob_buf_free(&b);
+
return ret;
}
if (ret)
fprintf(stderr, "Failed to send reply: %s\n", ubus_strerror(ret));
+ blob_buf_free(&b);
+
return ret;
}
babeld_add_route_buf(route, &b);
snprintf(method, sizeof(method), "route.%s", local_kind(kind));
ubus_notify(shared_ctx, &babeld_object, method, b.head, -1);
+ blob_buf_free(&b);
}
void ubus_notify_xroute(struct xroute *xroute, int kind) {
babeld_add_xroute_buf(xroute, &b);
snprintf(method, sizeof(method), "xroute.%s", local_kind(kind));
ubus_notify(shared_ctx, &babeld_object, method, b.head, -1);
+ blob_buf_free(&b);
}
void ubus_notify_neighbour(struct neighbour *neigh, int kind) {
babeld_add_neighbour_buf(neigh, &b);
snprintf(method, sizeof(method), "neigh.%s", local_kind(kind));
ubus_notify(shared_ctx, &babeld_object, method, b.head, -1);
+ blob_buf_free(&b);
}
void babeld_ubus_receive(fd_set *readfds) {