Free slice in OpSendStatusFromServerContext (#90)

We allocate the slice in createOpContext via byteStringToSlice but we
never freed it.
This commit is contained in:
Moritz Kiefer 2019-08-28 16:46:14 +02:00 committed by Gabriel Gonzalez
parent 11681ec6b9
commit 01b17286b6

View file

@ -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) =