You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given that I found a memory leak in metadata.c (and fixed it with #133), would it be advisable to do a full review of the entire C shim library for memory leaks?
Also, the GRPC de-initializers that sometimes get called use gpr_free. To be consistent with that, should we allocate all memory using gpr_malloc instead of malloc? I assume the two are currently interchangeable, but it might make sense to be consistent there to avoid trouble down the road.
WDYT?
The text was updated successfully, but these errors were encountered:
I'm not sure actually. But the alloc.c located in SwifGRPC.xcodeproj/Sources/CgRPC/src/core/lib/support/
So I assume it's with SwiftGRPC.
When calling with high frequency, it generates tons of Malloc 32.0Kib according to the Profile Tool on XCode.
I've noticed that there is a free function in the alloc.h. But memory never actually get freed.
Given that I found a memory leak in
metadata.c
(and fixed it with #133), would it be advisable to do a full review of the entire C shim library for memory leaks?Also, the GRPC de-initializers that sometimes get called use
gpr_free
. To be consistent with that, should we allocate all memory usinggpr_malloc
instead ofmalloc
? I assume the two are currently interchangeable, but it might make sense to be consistent there to avoid trouble down the road.WDYT?
The text was updated successfully, but these errors were encountered: