Merge commit '9752d2e6cc9b9e8070ec515db8ed8374683d0856'
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 3 Jul 2015 01:50:38 +0000 (03:50 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 3 Jul 2015 01:51:00 +0000 (03:51 +0200)
* commit '9752d2e6cc9b9e8070ec515db8ed8374683d0856':
  asfdec: prevent possible memory leak in the asf_read_metadata_obj

Merged-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/asfdec_o.c

index 17f958f..f7889a4 100644 (file)
@@ -572,7 +572,8 @@ static int asf_read_metadata_obj(AVFormatContext *s, const GUIDParseTable *g)
                 if ((ret = process_metadata(s, name, name_len, val_len, type,
                                             &asf->asf_sd[st_num].asf_met)) < 0)
                     break;
-            }
+            } else
+                av_freep(&name);
         }
     }