Some small fixes found by @jonathangray with cppcheck/scan-build.
This commit is contained in:
parent
3109f9243a
commit
2b1181c2ca
3 changed files with 9 additions and 3 deletions
|
|
@ -483,7 +483,7 @@ azure_getpubkeys(struct system_config *sc)
|
|||
FILE *fp;
|
||||
int ret = -1;
|
||||
FILE *infp = NULL;
|
||||
char *inbuf;
|
||||
char *inbuf = NULL;
|
||||
size_t inbufsz;
|
||||
|
||||
if ((fp = fopen(az->az_certs, "r")) == NULL) {
|
||||
|
|
@ -769,6 +769,7 @@ azure_getendpoint(struct system_config *sc)
|
|||
if (asprintf(&ep, "%d.%d.%d.%d",
|
||||
a[0], a[1], a[2], a[3]) == -1) {
|
||||
log_debug("%s: asprintf", __func__);
|
||||
fclose(fp);
|
||||
return (-1);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue