# Memory management and low-level free/malloc interaction

**URL:** https://discourse.julialang.org/t/memory-management-and-low-level-free-malloc-interaction/10588
**Category:** Internals & Design
**Created:** [April 28, 2018, 8:53am UTC](https://discourse.julialang.org/t/memory-management-and-low-level-free-malloc-interaction/10588 "2018-04-28T08:53:26Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![lobingera](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lobingera/32/211_2.png) [@lobingera](https://discourse.julialang.org/u/lobingera)
#### Post date: [April 28, 2018, 8:53am UTC](https://discourse.julialang.org/t/memory-management-and-low-level-free-malloc-interaction/10588/1 "2018-04-28T08:53:26Z")

</div>

I’m trying to make some sense of [Memory leak when destroying a surface · Issue #225 · JuliaGraphics/Cairo.jl · GitHub](https://github.com/JuliaGraphics/Cairo.jl/issues/225) and [CairoScript should probably not use finalizers · Issue #215 · JuliaGraphics/Cairo.jl · GitHub](https://github.com/JuliaGraphics/Cairo.jl/issues/215) which both seems to be related to julia and ccall-able. Different problems on different platforms and hard to reproduce and test.

Is there documentation (also what-to-read in julia code) about the interactions?
