Skip to content

Commit

Permalink
reload: fix possible FILE * leak when error
Browse files Browse the repository at this point in the history
Fixes Coverity #199978

(cherry picked from commit 3b1b9d7)
  • Loading branch information
razvancrainea committed Jan 29, 2020
1 parent 52376f8 commit cbd86bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cfg_reload.c
Expand Up @@ -349,6 +349,7 @@ static void routes_reload_per_proc(int sender, void *param)
parsed_sr = new_sroutes_holder();
if (parsed_sr==NULL) {
LM_ERR("failed to allocate a new script routes holder\n");
fclose(cfg);
goto error;
}
sr_bk = sroutes;
Expand Down

0 comments on commit cbd86bf

Please sign in to comment.