diff --git a/src/httpd.c b/src/httpd.c index 7e5829b1..7031aa0c 100644 --- a/src/httpd.c +++ b/src/httpd.c @@ -120,6 +120,9 @@ stream_end(struct stream_ctx *st, int failed) if (st->xcode) transcode_cleanup(st->xcode); + else + close(st->fd); + free(st); }