libubus: free internal blob_buf memory when freeing an ubus context

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
Felix Fietkau 2012-12-30 14:12:10 +01:00
parent bb856ad8a9
commit 7c140855d9

View file

@ -292,6 +292,7 @@ struct ubus_context *ubus_connect(const char *path)
void ubus_free(struct ubus_context *ctx)
{
blob_buf_free(&b);
close(ctx->sock.fd);
free(ctx);
}