mirror of
https://github.com/unclechu/gRPC-haskell.git
synced 2024-11-22 19:19:42 +01:00
Free slice in OpSendStatusFromServerContext (#90)
We allocate the slice in createOpContext via byteStringToSlice but we never freed it.
This commit is contained in:
parent
11681ec6b9
commit
01b17286b6
1 changed files with 2 additions and 2 deletions
|
@ -108,8 +108,8 @@ freeOpContext (OpSendInitialMetadataContext m _) = C.metadataFree m
|
|||
freeOpContext (OpSendMessageContext (bb, s)) =
|
||||
C.grpcByteBufferDestroy bb >> C.freeSlice s
|
||||
freeOpContext OpSendCloseFromClientContext = return ()
|
||||
freeOpContext (OpSendStatusFromServerContext metadata _ _ _) =
|
||||
C.metadataFree metadata
|
||||
freeOpContext (OpSendStatusFromServerContext metadata _ _ s) =
|
||||
C.metadataFree metadata >> C.freeSlice s
|
||||
freeOpContext (OpRecvInitialMetadataContext metadata) =
|
||||
C.metadataArrayDestroy metadata
|
||||
freeOpContext (OpRecvMessageContext pbb) =
|
||||
|
|
Loading…
Reference in a new issue