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>
This commit is contained in:
Aman Gupta 2019-04-14 00:09:17 -07:00
parent 44f8dccfb6
commit 877ae46125
1 changed files with 0 additions and 1 deletions

View File

@ -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.