summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorAman Gupta <aman@tmm1.net>2019-04-14 00:09:17 -0700
committerAman Gupta <aman@tmm1.net>2019-09-11 13:10:03 -0700
commit877ae46125078d0ad61b85fb0db8c86ca296da3b (patch)
tree7f76e5a104e353707c8ccf4a93d0d2fc8ebfdaef /stream
parent44f8dccfb6054b08803101ab34dffd9cc8a6245f (diff)
downloadmpv-877ae46125078d0ad61b85fb0db8c86ca296da3b.tar.bz2
mpv-877ae46125078d0ad61b85fb0db8c86ca296da3b.tar.xz
stream_file: avoid redundant free
s->priv->cancel will be freed when s is freed, so freeing it explicitly is not required. Signed-off-by: Aman Gupta <aman@tmm1.net>
Diffstat (limited to 'stream')
-rw-r--r--stream/stream_file.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/stream/stream_file.c b/stream/stream_file.c
index dc5a3ed6f7..5d424d66d6 100644
--- a/stream/stream_file.c
+++ b/stream/stream_file.c
@@ -161,7 +161,6 @@ static void s_close(stream_t *s)
struct priv *p = s->priv;
if (p->close)
close(p->fd);
- talloc_free(p->cancel);
}
// If url is a file:// URL, return the local filename, otherwise return NULL.