Skip to content

Commit

Permalink
Merge pull request #34 from chipitsine/master
Browse files Browse the repository at this point in the history
src/glb-director/glb_fwd_config.c: reorder code to avoid cppcheck issue
  • Loading branch information
theojulienne committed Aug 17, 2018
2 parents a2b0880 + 895036e commit 0fa94d7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/glb-director/glb_fwd_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ struct glb_fwd_config_ctx *create_glb_fwd_config(const char *config_file)
}
#endif

goto done;
return glb_fwd_config_ctx_incref(ctx);

cleanup:
free(ctx);
Expand All @@ -131,8 +131,6 @@ struct glb_fwd_config_ctx *create_glb_fwd_config(const char *config_file)
close(fd);
exit(1);

done:
return glb_fwd_config_ctx_incref(ctx);
}

struct glb_fwd_config_ctx *
Expand Down

0 comments on commit 0fa94d7

Please sign in to comment.