diff --git a/lib/context.c b/lib/context.c index e8066b7235..37219cdbc0 100644 --- a/lib/context.c +++ b/lib/context.c @@ -535,7 +535,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 **)