This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
fix a memleak in av_metadata_set()
Originally committed as revision 17617 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Aurelien Jacobs
16 years ago
parent
144ae29dde
commit
6352c6bb63
1 changed files
with
3 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-1
libavformat/metadata.c
+ 3
- 1
libavformat/metadata.c
View File
@@ -68,8 +68,10 @@ int av_metadata_set(AVMetadata **pm, const char *key, const char *value)
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;
}
Write
Preview
Loading…
Cancel
Save