On 6 April 2015 at 13:46, Tomasz Buchert <tomasz@debian.org> wrote: > This should do the trick. > > Tomasz >From browsing the code it appears Mode can be assigned to multiple times for the same Item, e.g. { Mode = "copy"; ... Mode = decompProg.c_str() } In which case using strdup to create a new string for each assignment will leak memory?