[FFmpeg-cvslog] r17617 - trunk/libavformat/metadata.c
aurel
subversion
Thu Feb 26 15:40:05 CET 2009
Author: aurel
Date: Thu Feb 26 15:40:04 2009
New Revision: 17617
Log:
fix a memleak in av_metadata_set()
Modified:
trunk/libavformat/metadata.c
Modified: trunk/libavformat/metadata.c
==============================================================================
--- trunk/libavformat/metadata.c Thu Feb 26 15:24:50 2009 (r17616)
+++ trunk/libavformat/metadata.c Thu Feb 26 15:40:04 2009 (r17617)
@@ -68,8 +68,10 @@ int av_metadata_set(AVMetadata **pm, con
m->elems[m->count].value= av_strdup(value);
m->count++;
}
- if(!m->count)
+ if(!m->count) {
+ av_free(m->elems);
av_freep(pm);
+ }
return 0;
}
More information about the ffmpeg-cvslog
mailing list