diff options
author | ncteisen <ncteisen@gmail.com> | 2017-03-10 14:58:43 -0800 |
---|---|---|
committer | ncteisen <ncteisen@gmail.com> | 2017-03-10 22:25:25 -0800 |
commit | bbb3801e480674695d5f60950724a432f264f170 (patch) | |
tree | 3233995f3667592c92981a6f2d99ab1cf5fe421d /src/core/lib/security/credentials | |
parent | 5dc79eb5aab791dd707c210dd29379a46626f8e8 (diff) |
Change error get/set API to grpc_slice
Diffstat (limited to 'src/core/lib/security/credentials')
-rw-r--r-- | src/core/lib/security/credentials/google_default/google_default_credentials.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/lib/security/credentials/google_default/google_default_credentials.c b/src/core/lib/security/credentials/google_default/google_default_credentials.c index dd44621347..f09e64c564 100644 --- a/src/core/lib/security/credentials/google_default/google_default_credentials.c +++ b/src/core/lib/security/credentials/google_default/google_default_credentials.c @@ -190,10 +190,8 @@ static grpc_error *create_default_creds_from_path( json = grpc_json_parse_string_with_len( (char *)GRPC_SLICE_START_PTR(creds_data), GRPC_SLICE_LENGTH(creds_data)); if (json == NULL) { - char *dump = grpc_dump_slice(creds_data, GPR_DUMP_HEX | GPR_DUMP_ASCII); error = grpc_error_set_str(GRPC_ERROR_CREATE("Failed to parse JSON"), - GRPC_ERROR_STR_RAW_BYTES, dump); - gpr_free(dump); + GRPC_ERROR_STR_RAW_BYTES, grpc_slice_ref_internal(creds_data)); goto end; } |