Преглед на файлове

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);