From 65c1ba95c09515526e3bf4a8e934187f5f5c1e98 Mon Sep 17 00:00:00 2001 From: nxshock Date: Tue, 1 Feb 2022 10:01:56 +0500 Subject: [PATCH] Free used pipe --- streamer.go | 1 + 1 file changed, 1 insertion(+) diff --git a/streamer.go b/streamer.go index 12e86cb..1eec96f 100644 --- a/streamer.go +++ b/streamer.go @@ -39,6 +39,7 @@ func encode(url string, w io.Writer) error { if err != nil { return err } + defer out.Close() err = cmd.Start() if err != nil {