From fff2bb5b217ea6796d79cd8bc8982c7fbf8ffcf1 Mon Sep 17 00:00:00 2001
From: Cory McWilliams <cmcwilliams@velanstudios.com>
Date: Wed, 16 Aug 2017 16:03:12 -0400
Subject: [PATCH] Subject: Mismatched lws_zalloc / free

---
 lib/context.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/context.c b/lib/context.c
index 131fb082..9a3e23bd 100644
--- a/lib/context.c
+++ b/lib/context.c
@@ -421,7 +421,7 @@ lws_create_vhost(struct lws_context *context,
 		vh->protocols = lwsp;
 	else {
 		vh->protocols = info->protocols;
-		free(lwsp);
+		lws_free(lwsp);
 	}
 
 	vh->same_vh_protocol_list = (struct lws **)
-- 
GitLab