Skip to content

Commit

Permalink
move free locaton
Browse files Browse the repository at this point in the history
  • Loading branch information
qiyuewuyi committed Mar 24, 2016
1 parent de4f53e commit 0cc11f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oss_auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ static int oss_get_canonicalized_headers(aos_pool_t *p,
len = apr_snprintf(tmpbuf, AOS_MAX_HEADER_LEN + 1, "%s:%.*s",
meta_headers[i], tmp_str.len, tmp_str.data);
if (len > AOS_MAX_HEADER_LEN) {
free(tmpbuf);
aos_error_log("user meta header too many, %s.", tmpbuf);
free(tmpbuf);
return AOSE_INVALID_ARGUMENT;
}
tmp_str.data = tmpbuf;
Expand Down

0 comments on commit 0cc11f7

Please sign in to comment.