From 38c502cb7ed1a250773185e16b0d2c55c01bffc5 Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Tue, 8 Dec 2009 19:53:53 +0100 Subject: [PATCH] Properly close the raw file that was streamed when cleaning up after streaming Report & fix by Ace Jones --- src/httpd.c | 3 +++ 1 file changed, 3 insertions(+) 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); }