]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/apetag.c
swfdec: do not set codec timebase.
[ffmpeg] / libavformat / apetag.c
index 378ae10ad42f0ac660fbca8c0f048d618a69c261..68c987e7e6a89546f1cdaa1a7c8a7bf89c4b707f 100644 (file)
@@ -75,8 +75,10 @@ static int ape_tag_read_field(AVFormatContext *s)
         if (!value)
             return AVERROR(ENOMEM);
         c = avio_read(pb, value, size);
-        if (c < 0)
+        if (c < 0) {
+            av_free(value);
             return c;
+        }
         value[c] = 0;
         av_dict_set(&s->metadata, key, value, AV_DICT_DONT_STRDUP_VAL);
     }