[ltt-dev] [UST PATCH 1/5] Make app socket directories per-user

Mathieu Desnoyers compudj at krystal.dyndns.org
Tue Mar 29 12:03:54 EDT 2011


* Mathieu Desnoyers (compudj at krystal.dyndns.org) wrote:
> * Nils Carlson (nils.carlson at ericsson.com) wrote:
[...]
> Please document that the caller must free the char * returned.
> 
> > +char *ustcomm_user_sock_dir(void)
> > +{

Actually, thinking about it a little more, we should probably even use a
naming convention that tells us we need to free memory returned by the
function return value pointer everywhere so that we can audit the caller
code easily for missing "free()".

e.g., in this case:

char *ustcomm_alloc_user_sock_dir(void)

Thoughts ?

Thanks,

Mathieu

-- 
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com




More information about the lttng-dev mailing list