mirror of
https://github.com/unclechu/gRPC-haskell.git
synced 2024-11-26 21:19:43 +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)) =
|
freeOpContext (OpSendMessageContext (bb, s)) =
|
||||||
C.grpcByteBufferDestroy bb >> C.freeSlice s
|
C.grpcByteBufferDestroy bb >> C.freeSlice s
|
||||||
freeOpContext OpSendCloseFromClientContext = return ()
|
freeOpContext OpSendCloseFromClientContext = return ()
|
||||||
freeOpContext (OpSendStatusFromServerContext metadata _ _ _) =
|
freeOpContext (OpSendStatusFromServerContext metadata _ _ s) =
|
||||||
C.metadataFree metadata
|
C.metadataFree metadata >> C.freeSlice s
|
||||||
freeOpContext (OpRecvInitialMetadataContext metadata) =
|
freeOpContext (OpRecvInitialMetadataContext metadata) =
|
||||||
C.metadataArrayDestroy metadata
|
C.metadataArrayDestroy metadata
|
||||||
freeOpContext (OpRecvMessageContext pbb) =
|
freeOpContext (OpRecvMessageContext pbb) =
|
||||||
|
|
Loading…
Reference in a new issue