From 7c140855d965598f2907454740c7a051dbee0176 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 30 Dec 2012 14:12:10 +0100 Subject: [PATCH] libubus: free internal blob_buf memory when freeing an ubus context Signed-off-by: Felix Fietkau --- libubus.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libubus.c b/libubus.c index a1dd51f..67363ad 100644 --- 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); } -- 2.30.2