Просмотр исходного кода

Merge pull request #6622 from ctiller/fix-master

Fix leak in port deallocation
Craig Tiller 9 лет назад
Родитель
Сommit
0b4d1238b8
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      test/core/util/port_posix.c

+ 1 - 0
test/core/util/port_posix.c

@@ -89,6 +89,7 @@ static int free_chosen_port(int port) {
       grpc_free_port_using_server(env, port);
       grpc_free_port_using_server(env, port);
     }
     }
   }
   }
+  gpr_free(env);
   return found;
   return found;
 }
 }