[MPlayer-cvslog] r35299 - trunk/command.c

reimar subversion at mplayerhq.hu
Tue Oct 30 19:03:30 CET 2012


Author: reimar
Date: Tue Oct 30 19:03:30 2012
New Revision: 35299

Log:
Free memory allocated by get_path.

Modified:
   trunk/command.c

Modified: trunk/command.c
==============================================================================
--- trunk/command.c	Tue Oct 30 19:00:52 2012	(r35298)
+++ trunk/command.c	Tue Oct 30 19:03:30 2012	(r35299)
@@ -194,7 +194,7 @@ static void log_sub(void)
     fname = get_path("subtitle_log");
     f = fopen(fname, "a");
     if (!f)
-        return;
+        goto out;
     fprintf(f, "----------------------------------------------------------\n");
     if (subdata->sub_uses_time) {
         fprintf(f,
@@ -212,6 +212,8 @@ static void log_sub(void)
         fprintf(f, "%s\n", vo_sub_last->text[i]);
     }
     fclose(f);
+out:
+    free(fname);
 }
 
 


More information about the MPlayer-cvslog mailing list