提交 f9d6addd 编写于 作者: L Limin Wang 提交者: Michael Niedermayer

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

Signed-off-by: NLimin Wang <lance.lmwang@gmail.com>
Signed-off-by: NMichael Niedermayer <michael@niedermayer.cc>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册