Commit f9d6addd authored by Limin Wang's avatar Limin Wang Committed by Michael Niedermayer

avformat/libsrt: fix for the memory leak if passphrase has been configured by option

Signed-off-by: 's avatarLimin Wang <lance.lmwang@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 648b8cca
......@@ -494,6 +494,7 @@ static int libsrt_open(URLContext *h, const char *uri, int flags)
s->pbkeylen = strtol(buf, NULL, 10);
}
if (av_find_info_tag(buf, sizeof(buf), "passphrase", p)) {
av_freep(&s->passphrase);
s->passphrase = av_strndup(buf, strlen(buf));
}
if (av_find_info_tag(buf, sizeof(buf), "mss", p)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment