unref error when fail to load file

pull/20735/head
yang-g 5 years ago
parent c21f588097
commit 7bdbe7ecba
  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