changeset 35205:8b8e20725b24

Free memory allocated by get_path.
author reimar
date Tue, 30 Oct 2012 18:03:30 +0000
parents 4a62631ecadd
children 63274beacefb
files command.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/command.c	Tue Oct 30 18:00:52 2012 +0000
+++ b/command.c	Tue Oct 30 18:03:30 2012 +0000
@@ -194,7 +194,7 @@
     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 @@
         fprintf(f, "%s\n", vo_sub_last->text[i]);
     }
     fclose(f);
+out:
+    free(fname);
 }