changeset 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
files stream/stream_cue.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream_cue.c	Mon Mar 01 20:33:47 2010 +0000
+++ b/stream/stream_cue.c	Mon Mar 01 20:38:33 2010 +0000
@@ -333,6 +333,8 @@
 
   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) {