summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-03-01 20:38:33 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-03-01 20:38:33 +0000
commit3fa6717fb9bbe871eaa36f8a6de5e39331422b55 (patch)
tree5c9daea02774ceee9f58da9e306ca4148b27e59c /stream
parentcd4aa2aa3068734f5355ee28cdd03482f7a30f99 (diff)
downloadmpv-3fa6717fb9bbe871eaa36f8a6de5e39331422b55.tar.bz2
mpv-3fa6717fb9bbe871eaa36f8a6de5e39331422b55.tar.xz
Fix memleak due to strdup'd filename not being freed.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30814 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream')
-rw-r--r--stream/stream_cue.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/stream/stream_cue.c b/stream/stream_cue.c
index a4affeb192..f19334edab 100644
--- a/stream/stream_cue.c
+++ b/stream/stream_cue.c
@@ -333,6 +333,8 @@ static int cue_read_cue (char *in_cue_filename)
av_strlcpy(bincue_path,t,sizeof( bincue_path ));
mp_msg(MSGT_OPEN,MSGL_V,"dirname: %s, cuepath: %s\n", t, bincue_path);
+ free(s);
+ s = t = NULL;
/* no path at all? */
if (strcmp(bincue_path, ".") == 0) {