From 7963f140b5aef9f1d7675d8faf067660397f57d6 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Tue, 10 Aug 2021 11:31:21 +0000 Subject: [PATCH] fixed a bug in failure cleanup in hio_svc_htts_start() --- hio/lib/http-svr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hio/lib/http-svr.c b/hio/lib/http-svr.c index e8495e3..e6ae1d1 100644 --- a/hio/lib/http-svr.c +++ b/hio/lib/http-svr.c @@ -486,7 +486,9 @@ oops: if (htts->l.sck) { for (i = 0; i < htts->l.count; i++) - hio_dev_sck_kill (htts->l.sck[i]); + { + if (htts->l.sck[i]) hio_dev_sck_kill (htts->l.sck[i]); + } hio_freemem (hio, htts->l.sck); }