|
|
|
@ -287,7 +287,6 @@ cdef class ByteBuffer: |
|
|
|
|
|
|
|
|
|
def __dealloc__(self): |
|
|
|
|
if self.c_byte_buffer != NULL: |
|
|
|
|
with nogil: |
|
|
|
|
grpc_byte_buffer_destroy(self.c_byte_buffer) |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -420,7 +419,6 @@ cdef class Metadata: |
|
|
|
|
# this frees the allocated memory for the grpc_metadata_array (although |
|
|
|
|
# it'd be nice if that were documented somewhere...) |
|
|
|
|
# TODO(atash): document this in the C core |
|
|
|
|
with nogil: |
|
|
|
|
grpc_metadata_array_destroy(&self.c_metadata_array) |
|
|
|
|
|
|
|
|
|
def __len__(self): |
|
|
|
@ -530,7 +528,6 @@ cdef class Operation: |
|
|
|
|
# Python. The remaining one(s) are primitive fields filled in by GRPC core. |
|
|
|
|
# This means that we need to clean up after receive_status_on_client. |
|
|
|
|
if self.c_op.type == GRPC_OP_RECV_STATUS_ON_CLIENT: |
|
|
|
|
with nogil: |
|
|
|
|
gpr_free(self._received_status_details) |
|
|
|
|
|
|
|
|
|
def operation_send_initial_metadata(Metadata metadata, int flags): |
|
|
|
|