At the moment, we do our own null checks before calling ubus_free().
The likely-hood of 'ctx' being null (in ubus_free()) is low,
but since free() handles null, might make sense for ubus_free() to do so as well.
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
void ubus_shutdown(struct ubus_context *ctx)
{
blob_buf_free(&b);
void ubus_shutdown(struct ubus_context *ctx)
{
blob_buf_free(&b);
close(ctx->sock.fd);
free(ctx->msgbuf.data);
}
close(ctx->sock.fd);
free(ctx->msgbuf.data);
}