From 3fa6717fb9bbe871eaa36f8a6de5e39331422b55 Mon Sep 17 00:00:00 2001 From: reimar Date: Mon, 1 Mar 2010 20:38:33 +0000 Subject: 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 --- stream/stream_cue.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'stream') 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) { -- cgit v1.2.3