libubus: free internal blob_buf memory when freeing an ubus context
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
parent
bb856ad8a9
commit
7c140855d9
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue