Skip to content

Commit

Permalink
carrierroute: prevent module from double closing file
Browse files Browse the repository at this point in the history
Fixing Coverity CID #152067
  • Loading branch information
razvancrainea committed Mar 22, 2017
1 parent 912214b commit e321a54
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion modules/carrierroute/route_config.c
Expand Up @@ -368,7 +368,6 @@ static int backup_config(void) {
/* open destination file */
if ((to = fopen(backup_file, "wb"))==NULL) {
LM_ERR("Cannot open destination file.\n");
fclose(from);
goto errout;
}

Expand Down

0 comments on commit e321a54

Please sign in to comment.