Skip to content

Commit

Permalink
Cleanup varargs in error case too.
Browse files Browse the repository at this point in the history
coverity: 1449517
  • Loading branch information
Linus Nordberg committed Aug 1, 2017
1 parent 9179e9f commit 011523e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,7 @@ int getgenericconfig(struct gconffile **cf, char *block, ...) {
errparam:
debug(DBG_ERR, "getgenericconfig: internal parameter error");
errexit:
va_end(ap);
free(opt);
free(val);
return 0;
Expand Down

0 comments on commit 011523e

Please sign in to comment.