I'm wondering if I generally have to free a string/buffer returned by a function if the documentation doesn't mention this.
In case of i.e g_strdup() the documentation mentions that I should free the returned buffer but then there are also functions like inet_ntoa() where the documentation doesn't say anything about this.
I'm also wondering what happens if I use such a function in the parameterlist of another function without ever storing a pointer in my code. Is that memory lost or is there a mechanism in place to handle this?