fixed a bug in failure cleanup in hio_svc_htts_start()

This commit is contained in:
hyung-hwan 2021-08-10 11:31:21 +00:00
parent 0a4ca3cb4e
commit 7963f140b5

View File

@ -486,7 +486,9 @@ oops:
if (htts->l.sck) if (htts->l.sck)
{ {
for (i = 0; i < htts->l.count; i++) 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); hio_freemem (hio, htts->l.sck);
} }