removed trailing whitespace, free a missing malloc when returning error
This commit is contained in:
parent
4af08a19f8
commit
6c3759d78d
@ -304,8 +304,10 @@ Curl_sec_read_msg(struct connectdata *conn, char *s, int level)
|
||||
len = Curl_base64_decode(s + 4, buf); /* XXX */
|
||||
|
||||
len = (conn->mech->decode)(conn->app_data, buf, len, level, conn);
|
||||
if(len < 0)
|
||||
if(len < 0) {
|
||||
free(buf);
|
||||
return -1;
|
||||
}
|
||||
|
||||
buf[len] = '\0';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user