linuxtardis - 2017-04-30

IMHO much better solution is to actually keep around an instance of std::string, which, by design, manages the associated memory. With the current way it's needed to call free() on each strdup()ed string. I'd recommend using std::string for local variables execute, username, outPath and similar, too.

 

Last edit: linuxtardis 2017-04-30