removed trailing whitespace, free a missing malloc when returning error

This commit is contained in:
Daniel Stenberg 2004-06-30 11:51:24 +00:00
parent 4af08a19f8
commit 6c3759d78d
1 changed files with 40 additions and 38 deletions

View File

@ -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';