well-typed / hs-bindgen

Automatically generate Haskell bindings from C header files
20 stars 0 forks source link

packCXString =<< foo pattern may leak #136

Closed phadej closed 1 month ago

phadej commented 2 months ago

foo allocates with malloc. packCXString disposes and frees. If async exception comes in between foo and packCXString some memory is leaked.

edsko commented 1 month ago

Closed in #154.