Juniper / grpc-c

C implementation of gRPC layered on top of core library
BSD 3-Clause "New" or "Revised" License
220 stars 59 forks source link

Query regarding usage of bytes in grpc-c #17

Closed kunchumraghu closed 7 years ago

kunchumraghu commented 7 years ago

Hi Ajay,

I am using a bytes in proto and allocating memory(using malloc) while sending raw bytes to peer. Will GRPC-C free this memory or does application should free it.

Thanks and Regards Raghu. S

ajhai commented 7 years ago

Hi Raghu,

Application will have to free this data. grpc-c will free just the context and other internal structures.

Thanks.