ffserver: explicitly free() duped filename

Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
This commit is contained in:
Reynaldo H. Verdejo Pinochet 2015-09-18 15:03:34 -07:00
parent fb349359dc
commit c677b42f79
1 changed files with 1 additions and 0 deletions

View File

@ -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);