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
2. Somehow replace unsafePackAddressLen with unsafePackMallocCStringLen. This sounds better (no copying), but I didn’t manage to get the types to match.
It seems this library (random-bytestring-0.1.3.2) leaks memory. One can run the program
and watch memory blowing up.
Here are two ideas for fixes to
Data.ByteString.Random.Internal
:1. Replace
bracketOnError
withbracket
and copy theByteString
at the end:2. Somehow replace
unsafePackAddressLen
withunsafePackMallocCStringLen
. This sounds better (no copying), but I didn’t manage to get the types to match.Update. For 2, here is a suggestion:
The text was updated successfully, but these errors were encountered: