]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - mp4.c
mp4: Fix memory leak in mp4_meta_update().
[paraslash.git] / mp4.c
diff --git a/mp4.c b/mp4.c
index f576529c0a954967e327834ae2b4e0bd204f24e2..d2a54eb2b0c4370dfe0010a669681f2398f8e6dd 100644 (file)
--- a/mp4.c
+++ b/mp4.c
@@ -1742,6 +1742,7 @@ int32_t mp4_meta_update(const struct mp4_callback *cb,
                write_data(f, "moov", 4);
                write_data(f, new_moov_data, new_moov_size);
        }
+       free(new_moov_data);
        cb->truncate(cb->user_data);
        mp4_close(f);
        return 1;