summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
Diffstat (limited to 'stream')
-rw-r--r--stream/stream_dvd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/stream/stream_dvd.c b/stream/stream_dvd.c
index 565054d81b..b27e71e3ab 100644
--- a/stream/stream_dvd.c
+++ b/stream/stream_dvd.c
@@ -1085,8 +1085,7 @@ static int ifo_stream_open (stream_t *stream, int mode, void *opts)
spriv->title=1;
free(filename);
- free(stream->url);
- stream->url=strdup("dvd://");
+ stream->url=talloc_strdup(stream, "dvd://");
return open_s(stream, mode, spriv);
}