Merge pull request #20735 from yang-g/error2

unref error when fail to load file
pull/20774/head
Yang Gao 5 years ago committed by GitHub
commit 19649c6a3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/core/lib/security/security_connector/load_system_roots_linux.cc

@ -66,6 +66,8 @@ grpc_slice GetSystemRootCerts() {
grpc_load_file(kLinuxCertFiles[i], 1, &valid_bundle_slice);
if (error == GRPC_ERROR_NONE) {
return valid_bundle_slice;
} else {
GRPC_ERROR_UNREF(error);
}
}
return grpc_empty_slice();

Loading…
Cancel
Save