Mercurial > mplayer.hg
comparison stream/stream_cue.c @ 30772:191606885380
Fix memleak due to strdup'd filename not being freed.
author | reimar |
---|---|
date | Mon, 01 Mar 2010 20:38:33 +0000 |
parents | 51a05cd3fa06 |
children | e40e03e0b5df |
comparison
equal
deleted
inserted
replaced
30771:51a05cd3fa06 | 30772:191606885380 |
---|---|
331 strcpy(t, "/"); | 331 strcpy(t, "/"); |
332 } | 332 } |
333 | 333 |
334 av_strlcpy(bincue_path,t,sizeof( bincue_path )); | 334 av_strlcpy(bincue_path,t,sizeof( bincue_path )); |
335 mp_msg(MSGT_OPEN,MSGL_V,"dirname: %s, cuepath: %s\n", t, bincue_path); | 335 mp_msg(MSGT_OPEN,MSGL_V,"dirname: %s, cuepath: %s\n", t, bincue_path); |
336 free(s); | |
337 s = t = NULL; | |
336 | 338 |
337 /* no path at all? */ | 339 /* no path at all? */ |
338 if (strcmp(bincue_path, ".") == 0) { | 340 if (strcmp(bincue_path, ".") == 0) { |
339 mp_msg(MSGT_OPEN,MSGL_V,"bincue_path: %s\n", bincue_path); | 341 mp_msg(MSGT_OPEN,MSGL_V,"bincue_path: %s\n", bincue_path); |
340 av_strlcpy(cue_filename,in_cue_filename,sizeof( cue_filename )); | 342 av_strlcpy(cue_filename,in_cue_filename,sizeof( cue_filename )); |