ffserver: explicitly free() duped filename

Signed-off-by: NReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
上级 fb349359
......@@ -3860,6 +3860,7 @@ int main(int argc, char **argv)
if ((ret = ffserver_parse_ffconfig(config.filename, &config)) < 0) {
fprintf(stderr, "Error reading configuration file '%s': %s\n",
config.filename, av_err2str(ret));
av_freep(&config.filename);
exit(1);
}
av_freep(&config.filename);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册