title: Memory management with dynamic libraries(dll/dylib)
body: <p>Is there any problem to allocate memory in an application and free it in a function called from a dll/dylib? </p>
  
  <p>But to allocate memory in a function from a dll/dylib and free it in the caller application?</p>