You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-06-19 19:03:00 +02:00
dict: fix memleak
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -98,6 +98,7 @@ int av_dict_set(AVDictionary **pm, const char *key, const char *value, int flags
|
||||
if (!newval)
|
||||
return AVERROR(ENOMEM);
|
||||
av_strlcat(newval, oldval, len);
|
||||
av_freep(&oldval);
|
||||
av_strlcat(newval, value, len);
|
||||
m->elems[m->count].value = newval;
|
||||
} else
|
||||
|
||||
Reference in New Issue
Block a user