From 52b87c9037b37dad256ad1b80e8056b392881026 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Wed, 6 Jan 2021 16:27:05 +0000 Subject: [PATCH] minimal: h-s-form-post: only delete the spa once --- .../minimal-http-server-form-post.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/minimal-examples/http-server/minimal-http-server-form-post/minimal-http-server-form-post.c b/minimal-examples/http-server/minimal-http-server-form-post/minimal-http-server-form-post.c index 1859cb836..0f8082ed1 100644 --- a/minimal-examples/http-server/minimal-http-server-form-post/minimal-http-server-form-post.c +++ b/minimal-examples/http-server/minimal-http-server-form-post/minimal-http-server-form-post.c @@ -106,9 +106,6 @@ callback_http(struct lws *wsi, enum lws_callback_reasons reason, void *user, lws_spa_get_string(pss->spa, n)); } - if (pss->spa && lws_spa_destroy(pss->spa)) - return -1; - /* * Our response is to redirect to a static page. We could * have generated a dynamic html page here instead.