Regards, -Shyam > On Mar 10, 2016, at 4:20 PM, Jeremy Allison wrote: > > On Fri, Mar 11, 2016 at 12:06:56AM +0000, Shyam Rathi wrote: >> Thanks Jeremy. >> >> ‘rootdir’ is defined as ‘const char *’, so passing it to TALLOC_FREE will be an issue. Is it a good idea to change it to ‘char *’, or have a separate variable for the substitution and then copy it to ‘rootdir’? >> >> Which approach is more acceptable? > > Change to char *. If it's talloced, > that's what it is.