From f994a4f728afd1fea2f24af17e5b6b44f47a7c91 Mon Sep 17 00:00:00 2001 From: unprompted Date: Mon, 28 Aug 2017 21:49:23 +0800 Subject: [PATCH] free vs lws_free: lws_vhost_destroy2 --- lib/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/context.c b/lib/context.c index a795717c..604f7cb2 100644 --- a/lib/context.c +++ b/lib/context.c @@ -1292,7 +1292,7 @@ lws_vhost_destroy2(struct lws_vhost *vh) lwsl_notice(" %s: Freeing vhost %p\n", __func__, vh); memset(vh, 0, sizeof(*vh)); - free(vh); + lws_free(vh); } int