fix memory leak in parse_args
Merge branch 'master' into txm