소스 검색

Add a missing mdstr_unref

This fixes most of the asan reported leaks.
David Klempner 10 년 전
부모
커밋
e5437de181
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/core/surface/call.c

+ 1 - 0
src/core/surface/call.c

@@ -318,6 +318,7 @@ grpc_call_error grpc_call_cancel_with_status(grpc_call *c,
   maybe_set_status_code(c, status);
   if (details) {
     maybe_set_status_details(c, details);
+    grpc_mdstr_unref(details);
   }
   gpr_mu_unlock(&c->read_mu);
   return grpc_call_cancel(c);