libubus: free internal blob_buf memory when freeing an ubus context
authorFelix Fietkau <nbd@openwrt.org>
Sun, 30 Dec 2012 13:12:10 +0000 (14:12 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 30 Dec 2012 13:14:22 +0000 (14:14 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
libubus.c

index a1dd51ff0451db9a99633ad365f2f808f28edbaa..67363ad57f42b1acc386c710cdd3541e564b02ff 100644 (file)
--- a/libubus.c
+++ b/libubus.c
@@ -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);
 }