ide: Fixed memory leak in SetPath() on Linux (dynamic library paths)